Skip to content

Commit

Permalink
lib: Windows build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vkoskiv committed Jan 6, 2024
1 parent cb6d8b3 commit 27fac5f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/common/platform/thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,19 +124,19 @@ int thread_cond_timed_wait(struct cr_cond *cond, struct cr_mutex *mutex, const s
int thread_cond_signal(struct cr_cond *cond) {
if (!cond) return -1;
#ifdef WINDOWS
return WakeConditionVariable(&cond->cond);
WakeConditionVariable(&cond->cond);
return 0;
#else
return pthread_cond_signal(&cond->cond);
#endif
return 0;
}

int thread_cond_broadcast(struct cr_cond *cond) {
if (!cond) return -1;
#ifdef WINDOWS
return WakeAllConditionVariable(&cond->cond);
WakeAllConditionVariable(&cond->cond);
return 0;
#else
return pthread_cond_broadcast(&cond->cond);
#endif
return 0;
}

0 comments on commit 27fac5f

Please sign in to comment.