1 /* ------------------------------------------------------------------ 2 * Copyright (C) 1998-2009 PacketVideo 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 13 * express or implied. 14 * See the License for the specific language governing permissions 15 * and limitations under the License. 16 * ------------------------------------------------------------------- 17 */ 18 // -*- c++ -*- 19 // = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 20 21 // 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 ) 22 23 // = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 24 25 26 /*! \file osclconfig_proc.h 27 * \brief This file contains configuration information for the linux platform 28 * 29 */ 30 31 #ifndef OSCLCONFIG_PROC_UNIX_ANDROID_H_INCLUDED 32 #define OSCLCONFIG_PROC_UNIX_ANDROID_H_INCLUDED 33 34 #define OSCL_HAS_SYMBIAN_SCHEDULER 0 35 36 #define OSCL_HAS_THREAD_SUPPORT 1 37 #define OSCL_HAS_NON_PREEMPTIVE_THREAD_SUPPORT 0 38 39 //semaphore with advanced realtime features incl. timed wait. 40 #define OSCL_HAS_SEM_TIMEDWAIT_SUPPORT 0 41 //#include <time.h> 42 //#include <semaphore.h> 43 44 //pthreads 45 #define OSCL_HAS_PTHREAD_SUPPORT 1 46 #include <pthread.h> 47 #include <errno.h> 48 #include <signal.h> 49 50 // threads, mutex, semaphores 51 typedef pthread_t TOsclThreadId; 52 typedef void* TOsclThreadFuncArg; 53 typedef void* TOsclThreadFuncRet; 54 #define OSCL_THREAD_DECL 55 typedef pthread_t TOsclThreadObject; 56 typedef pthread_mutex_t TOsclMutexObject; 57 typedef int TOsclSemaphoreObject; 58 typedef pthread_cond_t TOsclConditionObject; 59 60 #endif 61