From 678afd9c300ae4591aa53e3bbf0e14783803671e Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Thu, 25 Jun 2015 20:18:05 -0700 Subject: [PATCH] Fix busy loop if a spurious signal of the queue event happens --- limelight-common/LinkedBlockingQueue.c | 1 + 1 file changed, 1 insertion(+) diff --git a/limelight-common/LinkedBlockingQueue.c b/limelight-common/LinkedBlockingQueue.c index 25c6980..ac37602 100644 --- a/limelight-common/LinkedBlockingQueue.c +++ b/limelight-common/LinkedBlockingQueue.c @@ -152,6 +152,7 @@ int LbqWaitForQueueElement(PLINKED_BLOCKING_QUEUE queueHead, void** data) { PltLockMutex(&queueHead->mutex); if (queueHead->head == NULL) { + PltClearEvent(&queueHead->containsDataEvent); PltUnlockMutex(&queueHead->mutex); continue; }