diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/kvilib/config/kvi_wincfg.h | 6 | ||||
| -rw-r--r-- | src/kvilib/system/kvi_thread.h | 35 |
2 files changed, 0 insertions, 41 deletions
diff --git a/src/kvilib/config/kvi_wincfg.h b/src/kvilib/config/kvi_wincfg.h index c10ad5b..56fa5fa 100644 --- a/src/kvilib/config/kvi_wincfg.h +++ b/src/kvilib/config/kvi_wincfg.h @@ -74,12 +74,6 @@ /* define if you want zlib support */ #define COMPILE_ZLIB_SUPPORT 1 -/* define if you want to use the pthreads library */ -/* #undef COMPILE_THREADS_USE_POSIX */ - -/* define if you want to use the solaris libthread */ -/* #undef COMPILE_THREADS_USE_SOLARIS_LIBTHREAD */ - #define COMPILE_PSEUDO_TRANSPARENCY /* define if you have the SIOCGIFADDR ioctl and the related headers */ diff --git a/src/kvilib/system/kvi_thread.h b/src/kvilib/system/kvi_thread.h index 75bc077..37eb3c0 100644 --- a/src/kvilib/system/kvi_thread.h +++ b/src/kvilib/system/kvi_thread.h @@ -72,7 +72,6 @@ #define kvi_threadExit() ExitThread(0) #else - #ifdef COMPILE_THREADS_USE_POSIX // Glibc pthread implementation #include <pthread.h> @@ -109,40 +108,6 @@ // We don't care about exit codes at all #define kvi_threadExit() pthread_exit(0) - #else - #ifdef COMPILE_THREADS_USE_SOLARIS_LIBTHREAD - // Native solaris implementation - #include <thread.h> - #include <synch.h> - #include <errno.h> - - // Mutex stuff - #define kvi_mutex_t mutex_t - #define kvi_threadMutexInit(_pMutex_t) mutex_init(_pMutex_t,0,0) - #define kvi_threadMutexLock(_pMutex_t) mutex_lock(_pMutex_t) - #define kvi_threadMutexUnlock(_pMutex_t) mutex_unlock(_pMutex_t) - #define kvi_threadMutexDestroy(_pMutex_t) mutex_destroy(_pMutex_t) - inline bool kvi_threadMutexTryLock(kvi_mutex_t *_pMutex_t) - { - return (mutex_trylock(_pMutex_t) != EBUSY); - }; - // Actually unused - // #define kvi_threadMutexTryLock(_pMutex_t) mutex_trylock(_pMutex_t) - - // Thread stuff - #define kvi_thread_t thread_t - - inline bool kvi_threadCreate(kvi_thread_t *t,void * (*start_routine)(void *),void *arg) - { - return (thr_create(0,0,start_routine,arg,THR_DETACHED,t) == 0); - } - - // We don't care about exit codes at all - #define kvi_threadExit() thr_exit(0) - #else -// FIXME: #warning "Missing a decent thread implementation: we're going to fail , sorry!" - #endif - #endif #endif class KVILIB_API KviMutex : public KviHeapObject |
