~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Brian Aker
  • Date: 2010-12-18 10:14:05 UTC
  • mfrom: (2008.1.3 clean)
  • Revision ID: brian@tangent.org-20101218101405-qjbse29shi9coklg
Merge of user identifier work

Show diffs side-by-side

added added

removed removed

Lines of Context:
165
165
                exit(1);
166
166
        }
167
167
#endif
168
 
#ifdef __NETWARE__
169
 
        ret = pthread_attr_setstacksize(&attr,
170
 
                                        (size_t) NW_THD_STACKSIZE);
171
 
        if (ret) {
172
 
                fprintf(stderr,
173
 
                        "InnoDB: Error: pthread_attr_setstacksize"
174
 
                        " returned %d\n", ret);
175
 
                exit(1);
176
 
        }
177
 
#endif
178
168
        os_mutex_enter(os_sync_mutex);
179
169
        os_thread_count++;
180
170
        os_mutex_exit(os_sync_mutex);
255
245
/*=================*/
256
246
{
257
247
#if defined(__WIN__)
258
 
        Sleep(0);
 
248
        SwitchToThread();
259
249
#elif (defined(HAVE_SCHED_YIELD) && defined(HAVE_SCHED_H))
260
250
        sched_yield();
261
251
#elif defined(HAVE_PTHREAD_YIELD_ZERO_ARG)
278
268
{
279
269
#ifdef __WIN__
280
270
        Sleep((DWORD) tm / 1000);
281
 
#elif defined(__NETWARE__)
282
 
        delay(tm / 1000);
283
271
#else
284
272
        struct timeval  t;
285
273