diff options
author | rpj <rpj> | 1999-01-18 23:50:07 +0000 |
---|---|---|
committer | rpj <rpj> | 1999-01-18 23:50:07 +0000 |
commit | 20f77eda55f874b939719ac0abda4405ecd20bf8 (patch) | |
tree | e81393914f1a89d055b2384cc1c612d48c4a2a2c /pthread.h | |
parent | 9b75468a10363ada39a17563cca6bcd819ec8fcd (diff) |
Tue Jan 19 18:27:42 1999 Ross Johnson <rpj@swan.canberra.edu.au>
* pthread.h (pthreadCancelableTimedWait): New prototype.
(pthreadCancelableWait): Remove second argument.
* misc.c (CancelableWait): New static function is
pthreadCancelableWait() renamed.
(pthreadCancelableWait): Now just calls CancelableWait() with
INFINITE timeout.
(pthreadCancelableTimedWait): Just calls CancelableWait()
with passed in timeout.
* private.c (_pthread_sem_timedwait): 'abstime' arg really is
absolute time. Calculate relative time to wait from current
time before passing timeout to new routine
pthreadCancelableTimedWait().
- Scott Lightner <scott@curriculum.com>
Diffstat (limited to 'pthread.h')
-rw-r--r-- | pthread.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -918,10 +918,12 @@ int pthread_attr_setschedparam (pthread_attr_t *attr, * WaitForMultipleObjects * * on 'waitHandle' and a manually reset WIN32 Event - * used to implement pthread_cancel. The 'abstime' - * argument is simply passed to WaitForMultipleObjects. + * used to implement pthread_cancel. The 'timeout' + * argument to TimedWait is simply passed to + * WaitForMultipleObjects. */ -int pthreadCancelableWait (HANDLE waitHandle, DWORD abstime); +int pthreadCancelableWait (HANDLE waitHandle); +int pthreadCancelableTimedWait (HANDLE waitHandle, DWORD timeout); /* * Thread-Safe C Runtime Library Mappings |