https://llvm.org/bugs/show_bug.cgi?id=23019
Marshall Clow (home) <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #2 from Marshall Clow (home) <[email protected]> --- This was deliberate: The native_type is only available if the C++ object is a thin wrapper around a native type. If the client is aware of the native type and wants access to API that is provided by the OS, and not by the std::lib, this is the way he can get it, albeit non-portably. Things like setting thread priority were in mind when this feature was designed. libc++ did not implement timed_mutex and recursive_timed_mutex as thin wrappers around an OS-provided type, and so native_type is purposefully missing from those classes. Providing unfettered access to one of the fields in those classes might break class invariants among the fields. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ LLVMbugs mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
