<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:mclow.lists@gmail.com" title="Marshall Clow (home) <mclow.lists@gmail.com>"> <span class="fn">Marshall Clow (home)</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - missing native_handle_type in timed_mutex classes"
href="https://llvm.org/bugs/show_bug.cgi?id=23019">bug 23019</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>INVALID
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - missing native_handle_type in timed_mutex classes"
href="https://llvm.org/bugs/show_bug.cgi?id=23019#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - missing native_handle_type in timed_mutex classes"
href="https://llvm.org/bugs/show_bug.cgi?id=23019">bug 23019</a>
from <span class="vcard"><a class="email" href="mailto:mclow.lists@gmail.com" title="Marshall Clow (home) <mclow.lists@gmail.com>"> <span class="fn">Marshall Clow (home)</span></a>
</span></b>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>