summaryrefslogtreecommitdiff
path: root/sem_wait.c
diff options
context:
space:
mode:
authorrpj <rpj>2004-05-17 01:38:02 +0000
committerrpj <rpj>2004-05-17 01:38:02 +0000
commit771465fed0cf50ee2dd790723245fc091699c324 (patch)
treed8c18d095a33fe7c4564bd90c5f313bb9e4057dd /sem_wait.c
parent8b14911744f58cbe3730703f3fcc41cd969fd0f3 (diff)
re-indentation, bug fixes, hooks for pre-emptive async cancelation
Diffstat (limited to 'sem_wait.c')
-rw-r--r--sem_wait.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/sem_wait.c b/sem_wait.c
index 2f6fe3c..e2e171c 100644
--- a/sem_wait.c
+++ b/sem_wait.c
@@ -55,7 +55,7 @@ sem_wait (sem_t * sem)
*
* PARAMETERS
* sem
- * pointer to an instance of sem_t
+ * pointer to an instance of sem_t
*
* DESCRIPTION
* This function waits on a semaphore. If the
@@ -66,13 +66,13 @@ sem_wait (sem_t * sem)
* a signal.
*
* RESULTS
- * 0 successfully decreased semaphore,
- * -1 failed, error in errno
+ * 0 successfully decreased semaphore,
+ * -1 failed, error in errno
* ERRNO
- * EINVAL 'sem' is not a valid semaphore,
- * ENOSYS semaphores are not supported,
- * EINTR the function was interrupted by a signal,
- * EDEADLK a deadlock condition was detected.
+ * EINVAL 'sem' is not a valid semaphore,
+ * ENOSYS semaphores are not supported,
+ * EINTR the function was interrupted by a signal,
+ * EDEADLK a deadlock condition was detected.
*
* ------------------------------------------------------
*/
@@ -88,11 +88,11 @@ sem_wait (sem_t * sem)
#ifdef NEED_SEM
- result = pthreadCancelableWait ((*sem)->event);
+ result = pthreadCancelableWait ((*sem)->event);
#else /* NEED_SEM */
- result = pthreadCancelableWait ((*sem)->sem);
+ result = pthreadCancelableWait ((*sem)->sem);
#endif /* NEED_SEM */
@@ -106,7 +106,7 @@ sem_wait (sem_t * sem)
#ifdef NEED_SEM
- ptw32_decrease_semaphore(sem);
+ ptw32_decrease_semaphore (sem);
#endif /* NEED_SEM */