Why don't timed_mutex, recursive_timed_mutex, and shared_timed_mutex have native_handle?
#3387
-
|
Members |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Yes, I believe this is intentional. The three subject types are all implemented with a To my knowledge, the intent of having |
Beta Was this translation helpful? Give feedback.
Yes, I believe this is intentional. The three subject types are all implemented with a
mutex, acondition_variable, and some other small bits of state; there's nothing thatnative_handlecould usefully return. It's arguably bogus thatmutex,recursive_mutex, andcondition_variablereturn anative_handlethat's only usable by going out of contract and calling library internals, I think anything we could do for themeow_timed_mutexes would be even worse.To my knowledge, the intent of having
native_handlefor the types in the threading library is that one can get at the underlying POSIX thread library objects (hopefully) used to implement the C++ types so C code can interact with the same s…