diff options
author | Ho-Eun Ryu <ho-eun.ryu@windriver.com> | 2009-09-25 14:48:44 +0900 |
---|---|---|
committer | Patrick Tjin <pattjin@google.com> | 2014-07-21 22:03:24 -0700 |
commit | eb6dc073efaf0a75eb85ddf39819e9c431ac10e4 (patch) | |
tree | 60828191afa116bda5e75e6decf7ff6052d856c2 /utils/src | |
parent | 9a24011eec9b06ae84b9335c651999b9d5e25329 (diff) | |
download | wrs_omxil_core-eb6dc073efaf0a75eb85ddf39819e9c431ac10e4.tar.gz |
utils:workqueue: fix bug, wait condition of empty works list (!works)
Diffstat (limited to 'utils/src')
-rw-r--r-- | utils/src/workqueue.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/src/workqueue.cpp b/utils/src/workqueue.cpp index 2b5e47b..bf388f6 100644 --- a/utils/src/workqueue.cpp +++ b/utils/src/workqueue.cpp @@ -47,7 +47,7 @@ void WorkQueue::Run(void) * sleeps until works're available. * wokeup by ScheduleWork() or FlushWork() or ~WorkQueue() */ - if (works) + if (!works) pthread_cond_wait(&wcond, &wlock); while (works) { |