~dshrews/drizzle/bug643935

« back to all changes in this revision

Viewing changes to plugin/multi_thread/multi_thread.h

  • Committer: Brian Aker
  • Date: 2010-09-16 00:58:27 UTC
  • mfrom: (1766.1.2 trunk)
  • Revision ID: brian@tangent.org-20100916005827-f339tulsvm8ww358
Merge of Brian refactor + fix for Solaris find.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
  MultiThreadScheduler(const char *name_arg): 
36
36
    Scheduler(name_arg)
37
37
  {
38
 
    struct sched_param tmp_sched_param;
39
 
 
40
 
    memset(&tmp_sched_param, 0, sizeof(struct sched_param));
41
 
 
42
38
    /* Setup attribute parameter for session threads. */
43
39
    (void) pthread_attr_init(&attr);
44
40
    (void) pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
45
41
    pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM);
46
42
 
47
 
    tmp_sched_param.sched_priority= WAIT_PRIOR;
48
 
    (void) pthread_attr_setschedparam(&attr, &tmp_sched_param);
49
 
 
50
43
    thread_count= 0;
51
44
  }
52
45