aboutsummaryrefslogtreecommitdiff
path: root/src/Platform/Posix/Semaphore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Platform/Posix/Semaphore.c')
-rw-r--r--src/Platform/Posix/Semaphore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Platform/Posix/Semaphore.c b/src/Platform/Posix/Semaphore.c
index 4c64786..2fb03a1 100644
--- a/src/Platform/Posix/Semaphore.c
+++ b/src/Platform/Posix/Semaphore.c
@@ -117,7 +117,7 @@ int BH_SemaphorePost(BH_Semaphore *semaphore)
/* Increase semaphore value */
if (pthread_mutex_lock(&semaphore->mutex))
return BH_ERROR;
-
+
result = BH_OK;
semaphore->count++;
if (semaphore->waiters && pthread_cond_signal(&semaphore->condition))
@@ -142,7 +142,7 @@ int BH_SemaphoreWait(BH_Semaphore *semaphore)
result = pthread_cond_wait(&semaphore->condition, &semaphore->mutex);
if (result && result != ETIMEDOUT) {
result = BH_ERROR;
- break;
+ break;
}
result = BH_OK;
}