~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_pthread.c

  • Committer: Brian Aker
  • Date: 2008-06-28 02:03:37 UTC
  • Revision ID: brian@tangent.org-20080628020337-6y2swv2izzde76vw
Removed my_pthread_setprio()

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include <m_string.h>
24
24
#include <thr_alarm.h>
25
25
 
26
 
#define SCHED_POLICY SCHED_OTHER
27
 
 
28
26
uint thd_lib_detected= 0;
29
27
 
30
 
#ifndef my_pthread_setprio
31
 
void my_pthread_setprio(pthread_t thread_id,int prior)
32
 
{
33
 
#ifdef HAVE_PTHREAD_SETSCHEDPARAM
34
 
  struct sched_param tmp_sched_param;
35
 
  bzero((char*) &tmp_sched_param,sizeof(tmp_sched_param));
36
 
  tmp_sched_param.sched_priority=prior;
37
 
  VOID(pthread_setschedparam(thread_id,SCHED_POLICY,&tmp_sched_param));
38
 
#endif
39
 
}
40
 
#endif
41
 
 
42
28
#ifndef my_pthread_getprio
43
29
int my_pthread_getprio(pthread_t thread_id)
44
30
{