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_handle
could usefully return. It's arguably bogus thatmutex
,recursive_mutex
, andcondition_variable
return anative_handle
that's only usable by going out of contract and calling library internals, I think anything we could do for themeow_timed_mutex
es would be even worse.To my knowledge, the intent of having
native_handle
for 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…