From 8dbc1daaf41f75f003ef95d4d0bd921ecae52ecf Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Mon, 27 Jan 2020 14:33:57 +1100 Subject: [PATCH] [common] linux: signal should signal all listeners --- VERSION | 2 +- common/src/platform/linux/event.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index bbbca3d8..2de75c10 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -B1-122-gb658ea6459+1 \ No newline at end of file +B1-123-g5a23d048bd+1 \ No newline at end of file diff --git a/common/src/platform/linux/event.c b/common/src/platform/linux/event.c index b6ad8dd6..44e3ee59 100644 --- a/common/src/platform/linux/event.c +++ b/common/src/platform/linux/event.c @@ -139,7 +139,7 @@ bool lgSignalEvent(LGEvent * handle) return false; } - if (pthread_cond_signal(&handle->cond) != 0) + if (pthread_cond_broadcast(&handle->cond) != 0) { DEBUG_ERROR("Failed to signal the condition"); return false; @@ -167,4 +167,4 @@ bool lgResetEvent(LGEvent * handle) } return true; -} \ No newline at end of file +}