I'm writing a program in which I need to be able to send signals to threads, so I have to use pthreads (there's no guarantee that a C++11 thread's native_handle is a pthread ID). C++11 mutexes and atomics are great, but I have no idea whether the standard guarantees that I can use them together with pthreads (as opposed to C++11 threads).
--
Brian Bi
Jens Maurer
unread,
May 2, 2015, 3:08:44 AM5/2/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to std-dis...@isocpp.org
Obviously, a thread not created with C++11 is out-of-scope for the
C++ standard, so the standard can't say anything about it.
So, it's literally undefined behavior.
(It might work in a lot of today's implementations, though.)