diff options
author | rpj <rpj> | 1999-01-23 06:58:47 +0000 |
---|---|---|
committer | rpj <rpj> | 1999-01-23 06:58:47 +0000 |
commit | 6237335fec273ac2b00c32609a8eef91c6ec7473 (patch) | |
tree | 11a0048f90cda86fc653ac525b63650759e423cc /pthread.def | |
parent | 984d83b8c134a4dde2dddb31564d3d47b0da8c25 (diff) |
Fixing problems building with GNU compilers:
Sun Jan 24 01:34:52 1999 Ross Johnson <rpj@ixobrychus.canberra.edu.au>
* semaphore.c (sem_wait): Remove second arg to
pthreadCancelableWait() call.
Fri Jan 22 14:31:59 1999 Ross Johnson <rpj@swan.canberra.edu.au>
* Makefile.in (CFLAGS): Remove -fhandle-exceptions. Not needed
with egcs. Add -g for debugging.
* create.c (pthread_create): Replace __stdcall with PT_STDCALL
macro. This is a hack and must be fixed.
* misc.c (CancelableWait): Remove redundant statement.
* mutex.c (pthread_mutexattr_init): Cast calloc return value.
* misc.c (CancelableWait): Add cast.
(pthread_self): Add cast.
* exit.c (pthread_exit): Add cast.
* condvar.c (pthread_condattr_init): Cast calloc return value.
* cleanup.c: Reorganise conditional compilation.
* attr.c (pthread_attr_init): Remove unused 'result'.
Cast malloc return value.
* private.c (_pthread_callUserDestroyRoutines): Redo conditional
compilation.
* misc.c (CancelableWait): C++ version uses 'throw'.
* cancel.c (pthread_testcancel): Ditto.
* implement.h (class pthread_exception): Define for C++.
* pthread.h: Fix C, C++, and Win32 SEH condition compilation
mayhem around pthread_cleanup_* defines. C++ version now uses John
Bossom's cleanup handlers.
(pthread_attr_t): Make 'valid' unsigned.
Define '_timeb' as 'timeb' for Ming32.
Define PT_STDCALL as nothing for Mingw32. May be temporary.
* cancel.c (pthread_testcancel): Cast return value.
Diffstat (limited to 'pthread.def')
-rw-r--r-- | pthread.def | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/pthread.def b/pthread.def index 3f68e5c..d8f950f 100644 --- a/pthread.def +++ b/pthread.def @@ -1,5 +1,5 @@ ; pthread.def -; Last updated: $Date: 1999/01/12 14:48:59 $ +; Last updated: $Date: 1999/01/23 06:59:02 $ ; Currently unimplemented functions are commented out. @@ -49,11 +49,11 @@ pthread_key_delete pthread_mutexattr_destroy ;pthread_mutexattr_getprioceiling ;pthread_mutexattr_getprotocol -;phtread_mutexattr_getpshared +pthread_mutexattr_getpshared pthread_mutexattr_init ;pthread_mutexattr_setprioceiling ;pthread_mutexattr_setprotocol -;pthread_mutexattr_setpshared +pthread_mutexattr_setpshared pthread_mutexattr_destroy pthread_mutex_init pthread_mutex_destroy @@ -68,3 +68,14 @@ pthread_setschedparam pthread_setspecific ;pthread_sigmask pthread_testcancel +; +; Non-portable but useful +; +pthread_mutexattr_setforcecs_np +pthreadCancelableWait +pthreadCancelableTimedWait +; +; Needed if !defined(_MSC_VER) && !defined(__cplusplus) +; +_pthread_push_cleanup +_pthread_pop_cleanup |