[x265-commits] [x265] threadpool: explicit upcast of sleep bit to bitmap type
Steve Borho
steve at borho.org
Fri Mar 20 22:43:06 CET 2015
details: http://hg.videolan.org/x265/rev/3955fd395063
branches:
changeset: 9846:3955fd395063
user: Steve Borho <steve at borho.org>
date: Fri Mar 20 16:42:19 2015 -0500
description:
threadpool: explicit upcast of sleep bit to bitmap type
fixes warnings
diffstat:
source/common/threadpool.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 3372df77f872 -r 3955fd395063 source/common/threadpool.cpp
--- a/source/common/threadpool.cpp Fri Mar 20 11:06:32 2015 -0500
+++ b/source/common/threadpool.cpp Fri Mar 20 16:42:19 2015 -0500
@@ -380,7 +380,7 @@ void ThreadPool::stop()
m_isActive = false;
for (int i = 0; i < m_numWorkers; i++)
{
- while (!(m_sleepBitmap & (1 << i)))
+ while (!(m_sleepBitmap & ((sleepbitmap_t)1 << i)))
GIVE_UP_TIME();
m_workers[i].awaken();
m_workers[i].stop();
More information about the x265-commits
mailing list