Revision: 6543
http://playerstage.svn.sourceforge.net/playerstage/?rev=6543&view=rev
Author: thjc
Date: 2008-06-11 13:49:48 -0700 (Wed, 11 Jun 2008)
Log Message:
-----------
removed uneeded testcancel
Modified Paths:
--------------
code/player/branches/release-2-1-patches/libplayercore/device.cc
Modified: code/player/branches/release-2-1-patches/libplayercore/device.cc
===================================================================
--- code/player/branches/release-2-1-patches/libplayercore/device.cc
2008-06-11 20:48:20 UTC (rev 6542)
+++ code/player/branches/release-2-1-patches/libplayercore/device.cc
2008-06-11 20:49:48 UTC (rev 6543)
@@ -287,11 +287,11 @@
{
resp_queue->Wait();
// HACK: this loop should not be neccesary!
+ // pthread_cond_wait does not garuntee no false wake up, so maybe it is.
while(!(msg = resp_queue->Pop()))
{
- pthread_testcancel();
PLAYER_WARN("empty queue after waiting!");
- resp_queue->Wait();
+ resp_queue->Wait(); // this is a cancelation point
}
}
else
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit