in reply to Re^16: Threads sharing global variable (disingenous)
in thread Threads sharing global variable
he must have known, ... that his code hangs on windows
But, you have said it yourself, in here,
emulated cond_vars can be used on Windows; but doing so successfully requires an understanding of their inherent limitations (which exist everywhere, but are exacerbated by the crude emulation on Windows)
and here,
The best I've been able to conclude is that the signal is simply not seen by the waiters; because of the crude and sloppy emulation.
... and yet you chose to make use of said emulation, with due care and diligence as it would seem.
Lesser men tend to be lacking in such deep insight, that apparent requirement in writing exemplary threaded code. Please be understanding with us!
Would it be possible to share this knowledge, to outline the guiding principles and design considerations, so as to allow us to build robust, working solutions ourselves, all the while avoiding the dangerous pitfalls, taboos and uncertainties? Much obliged!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^18: Threads sharing global variable (disingenous)
by BrowserUk (Patriarch) on Mar 10, 2016 at 19:58 UTC |