~jlukas79/+junk/mysql-server

« back to all changes in this revision

Viewing changes to mysys/my_pthread.c

manual merge 6.0-main --> 6.0-bka-review

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
  struct sched_param tmp_sched_param;
39
39
  bzero((char*) &tmp_sched_param,sizeof(tmp_sched_param));
40
40
  tmp_sched_param.sched_priority=prior;
41
 
  VOID(pthread_setschedparam(thread_id,SCHED_POLICY,&tmp_sched_param));
 
41
  pthread_setschedparam(thread_id,SCHED_POLICY,&tmp_sched_param);
42
42
#endif
43
43
}
44
44
#endif
65
65
  struct sched_param tmp_sched_param;
66
66
  bzero((char*) &tmp_sched_param,sizeof(tmp_sched_param));
67
67
  tmp_sched_param.sched_priority=priority;
68
 
  VOID(pthread_attr_setschedparam(attr,&tmp_sched_param));
 
68
  pthread_attr_setschedparam(attr,&tmp_sched_param);
69
69
#endif
70
70
}
71
71
#endif
308
308
{
309
309
  pthread_mutex_lock(&LOCK_sigwait);
310
310
  sigaddset(&pending_set, sig);
311
 
  VOID(pthread_cond_signal(&COND_sigwait)); /* inform sigwait() about signal */
 
311
  pthread_cond_signal(&COND_sigwait); /* inform sigwait() about signal */
312
312
  pthread_mutex_unlock(&LOCK_sigwait);
313
313
}
314
314
 
365
365
    pthread_attr_setdetachstate(&thr_attr,PTHREAD_CREATE_DETACHED);
366
366
    pthread_attr_setstacksize(&thr_attr,8196);
367
367
    my_pthread_attr_setprio(&thr_attr,100);     /* Very high priority */
368
 
    VOID(pthread_create(&sigwait_thread_id,&thr_attr,sigwait_thread,setp));
369
 
    VOID(pthread_attr_destroy(&thr_attr));
 
368
    pthread_create(&sigwait_thread_id,&thr_attr,sigwait_thread,setp);
 
369
    pthread_attr_destroy(&thr_attr);
370
370
  }
371
371
 
372
372
  pthread_mutex_lock(&LOCK_sigwait);
392
392
        return 0;
393
393
      }
394
394
    }
395
 
    VOID(pthread_cond_wait(&COND_sigwait,&LOCK_sigwait));
 
395
    pthread_cond_wait(&COND_sigwait,&LOCK_sigwait);
396
396
  }
397
397
  return 0;
398
398
}