<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div><span><br></span></div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;"> <div class="yui_3_2_0_23_133544286144061" style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"> <div class="yui_3_2_0_23_133544286144063" style="font-family: times new roman,new york,times,serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Sean Kelly <sean@invisibleduck.org><br><b><span style="font-weight: bold;"></span></b></font>void put(T val) {<br></div> synchronized (cond.mutex) {<br> queue.pushBack(val);<br> cond.notify(); // atomically unlocks mutex on call, locks on return<br>
}<br>}<br></div></div></blockquote>Huh, I thought notify did not unlock the mutex at all (I don't see why it would need to).</div><div><br></div><div>-Steve<br><div class="yui_3_2_0_23_133544286144061" style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"><div class="yui_3_2_0_23_133544286144063" style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br></div></div><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;"><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> </div> </div> </blockquote></div> </div></body></html>