00001 // -*- c++ -*- 00002 // = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 00003 00004 // O S C L C O N F I G _ P R O C ( P L A T F O R M C O N F I G I N F O ) 00005 00006 // = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 00007 00008 00014 #ifndef OSCLCONFIG_PROC_UNIX_COMMON_H_INCLUDED 00015 #define OSCLCONFIG_PROC_UNIX_COMMON_H_INCLUDED 00016 00017 #define OSCL_HAS_SYMBIAN_SCHEDULER 0 00018 00019 #define OSCL_HAS_THREAD_SUPPORT 1 00020 #define OSCL_HAS_NON_PREEMPTIVE_THREAD_SUPPORT 0 00021 00022 //semaphore with advanced realtime features incl. timed wait. 00023 #define OSCL_HAS_SEM_TIMEDWAIT_SUPPORT 1 00024 #include <time.h> 00025 #include <semaphore.h> 00026 00027 //pthreads 00028 #define OSCL_HAS_PTHREAD_SUPPORT 1 00029 #include <pthread.h> 00030 #include <errno.h> 00031 00032 // threads, mutex, semaphores 00033 typedef pthread_t TOsclThreadId; 00034 typedef void* TOsclThreadFuncArg; 00035 typedef void* TOsclThreadFuncRet; 00036 #define OSCL_THREAD_DECL 00037 typedef pthread_t TOsclThreadObject; 00038 typedef pthread_mutex_t TOsclMutexObject; 00039 typedef sem_t TOsclSemaphoreObject; 00040 typedef pthread_cond_t TOsclConditionObject; 00041 00042 #endif