3 ms·
> 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:
by gpderetta 3y 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.
- anarazel 3y agoIt was more a rethorical doubting because I did not want to look the standard up on my phone....