Download Free Ebooks. Download Self Development Books. Download Comic Books. Download Batman Dark Knight. Download Audiobooks Books. Download Self Help Books. Download Project Management Books.Download Management Books.Download Leadership Development Books. Download Religion and Spirituality Books. Download Soft Skills Development Books. Download Self Finance Books. Download Sales and Marketing Books. Download Business DEvelopment Books.
Tuesday, 22 May 2012
Extraneous call to unlock on scoped_lock
In the following blogpost: http://www.justsoftwaresolutions.co.uk/threading/implementing-a-thread-safe-queue-using-condition-variables.html There is a 'push' method defined as follows: void push(Data const& data) { boost::mutex::scoped_lock lock(the_mutex); the_queue.push(data); lock.unlock(); the_condition_variable.notify_one(); } My questions are: why is there an explicit '
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment