~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/multi_thread/multi_thread.cc

  • Committer: Brian Aker
  • Date: 2009-03-12 19:38:25 UTC
  • mto: This revision was merged to the branch mainline in revision 933.
  • Revision ID: brian@tangent.org-20090312193825-ggfxfjgodckoa13y
Pushing thread attribute for threads down to engine.

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
  /* Parameter for threads created for connections */
76
76
  (void) pthread_attr_init(&multi_thread_attrib);
77
77
  (void) pthread_attr_setdetachstate(&multi_thread_attrib,
78
 
                                     PTHREAD_CREATE_DETACHED);
 
78
                                     PTHREAD_CREATE_DETACHED);
79
79
  pthread_attr_setscope(&multi_thread_attrib, PTHREAD_SCOPE_SYSTEM);
 
80
  {
 
81
    struct sched_param tmp_sched_param;
 
82
 
 
83
    memset(&tmp_sched_param, 0, sizeof(tmp_sched_param));
 
84
    tmp_sched_param.sched_priority= WAIT_PRIOR;
 
85
    (void)pthread_attr_setschedparam(&multi_thread_attrib, &tmp_sched_param);
 
86
  }
80
87
 
81
88
  return 0;
82
89
}