~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to include/my_pthread.h

  • Committer: Monty Taylor
  • Date: 2008-07-02 14:35:48 UTC
  • mto: This revision was merged to the branch mainline in revision 51.
  • Revision ID: monty@inaugust.com-20080702143548-onj30ry0sugr01uw
Removed all references to THREAD.

Show diffs side-by-side

added added

removed removed

Lines of Context:
453
453
  to use my_atomic operations instead.
454
454
*/
455
455
 
456
 
/*
457
 
  Warning:
458
 
  When compiling without threads, this file is not included.
459
 
  See the *other* declarations of thread_safe_xxx in include/my_global.h
460
 
 
461
 
  Second warning:
462
 
  See include/config-win.h, for yet another implementation.
463
 
*/
464
 
#ifdef THREAD
465
456
#ifndef thread_safe_increment
466
457
#define thread_safe_increment(V,L) \
467
458
        (pthread_mutex_lock((L)), (V)++, pthread_mutex_unlock((L)))
475
466
#define thread_safe_sub(V,C,L) \
476
467
        (pthread_mutex_lock((L)), (V)-=(C), pthread_mutex_unlock((L)))
477
468
#endif
478
 
#endif
479
469
 
480
470
/*
481
471
  statistics_xxx functions are for non critical statistic,