On 11/03/2011 10:54 AM, Fabien Chouteau wrote:
>> The unchaining is neither signal-safe nor thread-safe...
>
> Yeah, but there's nothing Windows-specific in that.
That's very important, I don't see why it is different between Linux and
Windows here.
Yep, perhaps for timers it was the case a while ago, but with
iothread+dynticks it should not be a problem anymore. For unchaining,
Linux and Windows should have never been different.
Also, why running all the threads on the same CPU would
make the code thread-safe?
It would ensure that two mutators wouldn't run concurrently. In some
sense, signal-safe code could then be considered thread-safe too.
Paolo