~dshrews/drizzle/bug643935

« back to all changes in this revision

Viewing changes to plugin/innobase/os/os0thread.c

  • 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:
135
135
                              0,        /* thread runs immediately */
136
136
                              &win_thread_id);
137
137
 
138
 
        if (srv_set_thread_priorities) {
139
 
 
140
 
                /* Set created thread priority the same as a normal query
141
 
                in MYSQL: we try to prevent starvation of threads by
142
 
                assigning same priority QUERY_PRIOR to all */
143
 
 
144
 
                ut_a(SetThreadPriority(thread, srv_query_thread_priority));
145
 
        }
146
 
 
147
138
        if (thread_id) {
148
139
                *thread_id = win_thread_id;
149
140
        }
202
193
#ifndef UNIV_HPUX10
203
194
        pthread_attr_destroy(&attr);
204
195
#endif
205
 
        if (srv_set_thread_priorities) {
206
 
 
207
 
                  struct sched_param tmp_sched_param;
208
 
 
209
 
                  memset(&tmp_sched_param, 0, sizeof(tmp_sched_param));
210
 
                  tmp_sched_param.sched_priority= srv_query_thread_priority;
211
 
                  (void)pthread_setschedparam(pthread, SCHED_OTHER, &tmp_sched_param);
212
 
        }
213
196
 
214
197
        if (thread_id) {
215
198
                *thread_id = pthread;