summaryrefslogtreecommitdiff
path: root/sem_post_multiple.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_post_multiple.c
parent8b14911744f58cbe3730703f3fcc41cd969fd0f3 (diff)
re-indentation, bug fixes, hooks for pre-emptive async cancelation
Diffstat (limited to 'sem_post_multiple.c')
-rw-r--r--sem_post_multiple.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/sem_post_multiple.c b/sem_post_multiple.c
index 998778c..43c71a6 100644
--- a/sem_post_multiple.c
+++ b/sem_post_multiple.c
@@ -47,7 +47,7 @@
int
-sem_post_multiple (sem_t * sem, int count )
+sem_post_multiple (sem_t * sem, int count)
/*
* ------------------------------------------------------
* DOCPUBLIC
@@ -55,10 +55,10 @@ sem_post_multiple (sem_t * sem, int count )
*
* PARAMETERS
* sem
- * pointer to an instance of sem_t
+ * pointer to an instance of sem_t
*
* count
- * counter, must be greater than zero.
+ * counter, must be greater than zero.
*
* DESCRIPTION
* This function posts multiple wakeups to a semaphore. If there
@@ -66,11 +66,11 @@ sem_post_multiple (sem_t * sem, int count )
* the semaphore value is incremented by count - n.
*
* RESULTS
- * 0 successfully posted semaphore,
- * -1 failed, error in errno
+ * 0 successfully posted semaphore,
+ * -1 failed, error in errno
* ERRNO
- * EINVAL 'sem' is not a valid semaphore
- * or count is less than or equal to zero.
+ * EINVAL 'sem' is not a valid semaphore
+ * or count is less than or equal to zero.
*
* ------------------------------------------------------
*/
@@ -84,11 +84,11 @@ sem_post_multiple (sem_t * sem, int count )
#ifdef NEED_SEM
- else if (! ptw32_increase_semaphore (sem, count))
+ else if (!ptw32_increase_semaphore (sem, count))
#else /* NEED_SEM */
- else if (! ReleaseSemaphore ((*sem)->sem, count, 0))
+ else if (!ReleaseSemaphore ((*sem)->sem, count, 0))
#endif /* NEED_SEM */