Annotation of parser3/src/include/pa_threads.h, revision 1.1
1.1 ! paf 1: /*
! 2: $Id: pa_string.h,v 1.7 2001/01/27 15:21:05 paf Exp $
! 3: */
! 4:
! 5: #ifndef PA_THREADS_H
! 6: #define PA_THREADS_H
! 7:
! 8: #ifdef HAVE_CONFIG_H
! 9: # include "pa_config.h"
! 10: #endif
! 11:
! 12: #include "pa_types.h"
! 13:
! 14:
! 15: #ifdef MULTITHREAD
! 16:
! 17: class Mutex {
! 18: uint handle;
! 19: public:
! 20: Mutex();
! 21: ~Mutex();
! 22: void lock();
! 23: void unlock();
! 24: };
! 25:
! 26: #else
! 27:
! 28: class Mutex {
! 29: Mutex() {}
! 30: ~Mutex() {}
! 31: void lock() {}
! 32: void unlock() {}
! 33: };
! 34:
! 35: #endif
! 36:
! 37: #endif
E-mail: