#ifndef _CONDVAR10_H #define _CONDVAR10_H #ifdef __cplusplus extern "C" { #endif #define pthread_attr_default (pthread_attr_t *) NULL #define pthread_mutexattr_default (pthread_mutexattr_t *) NULL #define pthread_condattr_default (pthread_condattr_t *) NULL typedef void*(*PTHREAD_START_ROUTINE_DECL)(void*); #include #include #include typedef struct { long tv_sec; long tv_nsec; } timestruc_t; //The following macro is used take care of catch(...) present in //thread code, as required by pthread library for NT when compiling // with MSVC++. #ifdef PtW32CatchAll #define psCatch PtW32CatchAll #else #define psCatch catch(...) #endif #ifdef __cplusplus } #endif #endif