in reply to Re^9: baton passing threads and cond_signal
in thread baton passing threads and cond_signal
The problem might be that your system's implementation of cond_wait isn't atomic
Which would be a bug worth reporting. An easy way to verify this would be to run the code above without the yields on single cpu Linux system and see if the problem occurs there?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^11: baton passing threads and cond_signal
by BrowserUk (Patriarch) on Aug 22, 2007 at 19:00 UTC | |
by ikegami (Patriarch) on Aug 22, 2007 at 19:32 UTC | |
by BrowserUk (Patriarch) on Aug 22, 2007 at 19:46 UTC | |
by Joost (Canon) on Aug 23, 2007 at 21:07 UTC | |
by BrowserUk (Patriarch) on Aug 23, 2007 at 22:25 UTC |