diff options
author | Steve Wills <swills@FreeBSD.org> | 2012-10-03 15:01:55 +0000 |
---|---|---|
committer | Steve Wills <swills@FreeBSD.org> | 2012-10-03 15:01:55 +0000 |
commit | 2dc83000f642298a849fe966a180a0c8ee240835 (patch) | |
tree | db3990209c5445a0fb715f0597231295c512aa73 /graphics/panomatic/files/patch-zthread-src-ThreadQueue.cxx | |
parent | - Update to 2012.09.27. (diff) |
- Fix build with clang
- Switch to SF mirror
- Add USE_DOS2UNIX
PR: ports/171859
Approved by: Iouri Ivliev <ii@any.com.ru> (maintainer)
Diffstat (limited to 'graphics/panomatic/files/patch-zthread-src-ThreadQueue.cxx')
-rw-r--r-- | graphics/panomatic/files/patch-zthread-src-ThreadQueue.cxx | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/graphics/panomatic/files/patch-zthread-src-ThreadQueue.cxx b/graphics/panomatic/files/patch-zthread-src-ThreadQueue.cxx new file mode 100644 index 000000000000..44d7e1fbc223 --- /dev/null +++ b/graphics/panomatic/files/patch-zthread-src-ThreadQueue.cxx @@ -0,0 +1,19 @@ +--- zthread/src/ThreadQueue.cxx.orig 2008-02-28 22:51:46.000000000 +0000 ++++ zthread/src/ThreadQueue.cxx 2012-09-24 12:02:46.539117586 +0000 +@@ -139,11 +139,13 @@ + + // Wake the main thread,if its waiting, when the last pending-thread becomes available; + // Otherwise, take note that no wait for pending threads to finish is needed +- if(_userThreads.empty()) +- if(_waiter && _waiter != (ThreadImpl*)1) ++ if(_userThreads.empty()) { ++ if(_waiter && _waiter != (ThreadImpl*)1) { + _waiter->getMonitor().notify(); +- else ++ } else { + _waiter = (ThreadImpl*)!_waiter; ++ } ++ } + + ZTDEBUG("1 pending-thread added.\n"); + |