Subj : Re: Futexes are wrong! (Are they?) To : comp.programming.threads From : Marcin 'Qrczak' Kowalczyk Date : Mon Jun 06 2005 10:58 pm "Jomu" writes: >> Unfortunately in the case I have pthread_cond_{broadcast,signal} >> is followed by pthread_cond_wait, so I can't move signalling after >> unlocking and additional context switches are pointless. > > You have code sample of this? It's very hard to understand in isolation. It's a scheduler which maps threads of my language to POSIX threads (many to one, changing in time). http://cvs.sourceforge.net/viewcvs.py/kokogut/kokogut/lib/Core/Kokogut/Threads/Scheduler.ko?view=markup -- __("< Marcin Kowalczyk \__/ qrczak@knm.org.pl ^^ http://qrnik.knm.org.pl/~qrczak/ .