summaryrefslogtreecommitdiff
path: root/ptw32_cond_check_need_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'ptw32_cond_check_need_init.c')
-rw-r--r--ptw32_cond_check_need_init.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ptw32_cond_check_need_init.c b/ptw32_cond_check_need_init.c
index 2f295c5..42b5a96 100644
--- a/ptw32_cond_check_need_init.c
+++ b/ptw32_cond_check_need_init.c
@@ -40,7 +40,7 @@
INLINE int
-ptw32_cond_check_need_init (pthread_cond_t *cond)
+ptw32_cond_check_need_init (pthread_cond_t * cond)
{
int result = 0;
@@ -65,7 +65,7 @@ ptw32_cond_check_need_init (pthread_cond_t *cond)
* the number of processors + 1.
*
*/
- EnterCriticalSection(&ptw32_cond_test_init_lock);
+ EnterCriticalSection (&ptw32_cond_test_init_lock);
/*
* We got here possibly under race
@@ -76,7 +76,7 @@ ptw32_cond_check_need_init (pthread_cond_t *cond)
*/
if (*cond == PTHREAD_COND_INITIALIZER)
{
- result = pthread_cond_init(cond, NULL);
+ result = pthread_cond_init (cond, NULL);
}
else if (*cond == NULL)
{
@@ -88,7 +88,7 @@ ptw32_cond_check_need_init (pthread_cond_t *cond)
result = EINVAL;
}
- LeaveCriticalSection(&ptw32_cond_test_init_lock);
+ LeaveCriticalSection (&ptw32_cond_test_init_lock);
return result;
}