Hacker News new | ask | show | jobs
by gpderetta 1083 days ago
> I also quite doubt that std::mutex, and even more so std::condition_variable are guaranteed to be signal safe.

They are not. Use sem_t for signaling.

edit: also even if they where, the signal handler might wait forever for a mutex owned by the blocked thread.

1 comments

It was more a rethorical doubting because I did not want to look the standard up on my phone....