From: <br...@us...> - 2008-02-24 16:58:40
|
Revision: 3392 http://openvrml.svn.sourceforge.net/openvrml/?rev=3392&view=rev Author: braden Date: 2008-02-24 08:58:29 -0800 (Sun, 24 Feb 2008) Log Message: ----------- Notify waiting readers when demoting the lock. Modified Paths: -------------- trunk/src/libopenvrml/openvrml/read_write_mutex.cpp Modified: trunk/src/libopenvrml/openvrml/read_write_mutex.cpp =================================================================== --- trunk/src/libopenvrml/openvrml/read_write_mutex.cpp 2008-02-24 16:45:17 UTC (rev 3391) +++ trunk/src/libopenvrml/openvrml/read_write_mutex.cpp 2008-02-24 16:58:29 UTC (rev 3392) @@ -285,5 +285,8 @@ { this->lock_.lock(); this->mutex_.writing_ = false; + if (this->mutex_.readers_waiting_ != 0) { + this->mutex_.read_.notify_all(); + } this->lock_.unlock(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |