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_ANDROID_H_INCLUDED 00015 #define OSCLCONFIG_PROC_UNIX_ANDROID_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 0 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 #include <signal.h> 00032 00033 // threads, mutex, semaphores 00034 typedef pthread_t TOsclThreadId; 00035 typedef void* TOsclThreadFuncArg; 00036 typedef void* TOsclThreadFuncRet; 00037 #define OSCL_THREAD_DECL 00038 typedef pthread_t TOsclThreadObject; 00039 typedef pthread_mutex_t TOsclMutexObject; 00040 typedef int TOsclSemaphoreObject; 00041 typedef pthread_cond_t TOsclConditionObject; 00042 00043 #endif