#ruby-lang - Fri 4 May 2007 between 01:08 and 01:38

NY Lost Funds



imperatorgood evening
bigredpastie hi
Can someone explain to me why this code deadlocks? http://pastie.caboo.se/58791
gnufiedwhere are you getting deadlock?
i am not seeing any deadlock
bigredreally?
i am running it from within textmate. what version of ruby are you running?
OlatheWhat does cv.wait do ?
bigredcondition variable
OlatheRight.
What does cv.wait do ?
bigredit waits for a condition to be met
before continuing
OlatheWhy is mutex passed to it ?
gnufiedOlathe, thats how condition variable works, read the docs
bigred, i am not getting any deadlock, I am on Linux, 1.8.5-p2
i do not see the point though
OlatheWhat happens if cv.wait is called after cv.signal ?
blinkBitches.
teferihey, it's blink
actionblink dances around the room in greetings.
blinkdances around the room in greetings.
OlatheNo dancing.
gnufiedhey blink
actionblink waits for her friend to arrive to go see SpdrMn.
blinkwaits for her friend to arrive to go see SpdrMn.
matadonblink: *nod*
actionblink dances on Olathe's grave.
blinkdances on Olathe's grave.
Olathe:(
actionblink bings happily for matadon.
blinkbings happily for matadon.
teferispiderman, spiderman, friendly neighborhood spiderman
matadonYay!
Did you get my happy message?
actionblink cues Johnny Rotten and headbangs.
blinkcues Johnny Rotten and headbangs.
gnufiedOlathe, did you try it?
actionmatadon is more of a Batman kind of guy, doubly so with Christian Bale playing the role.
matadonis more of a Batman kind of guy, doubly so with Christian Bale playing the role.
gnufiedOlathe, you get a deadlock!
matadonblink: I got accepted into Waseda University. ^^
gnufieddeadlock 0xb7cad020: sleep:- - /usr/local/lib/ruby/1.8/thread.rb:203
Olatheblink has been cloned !
blink_stupid internets.
earthlink needs to get a new main outlet.

Page: 2 9 16 23 30 37 44 

IrcArchive

NY Lost Funds