<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>


<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">

<p class="details" style="font-style: italic; color: #777;">
<a href="https://gitlab.com/rockdaboot">Tim Rühsen</a> created an issue:
</p>
<div></div>
<p dir="auto">Two days ago, Bruno Haible announced a bunch of new modules for gnulib, which look very promising.
It means, we could get rid off our own thread checking/compat code (configure.ac, lib/locks.h).</p>
<p dir="auto">Bruno's message from the gnulib ML:</p>
<p dir="auto">I'm committing a set of gnulib modules that support the essential portion of
POSIX <pthread.h> and its functions.</p>
<ul dir="auto">
<li>pthread-h: A POSIX-like <pthread.h>.</li>
<li>pthread-thread: Creating and controlling POSIX threads.</li>
<li>pthread-once: POSIX once-only control.</li>
<li>pthread-mutex: POSIX mutexes (locks).</li>
<li>pthread-rwlock: POSIX read-write locks.</li>
<li>pthread-cond: POSIX condition variables.</li>
<li>pthread-tss: POSIX thread-specific storage.</li>
<li>pthread-spin: POSIX spin locks.</li>
<li>pthread: Now merely a convenience wrapper for all of the above.</li>
</ul>
<p dir="auto">This has been tested on all customary platforms, from glibc systems up to
native Windows with MSVC, and Android.</p>
<p dir="auto">Like for the older 'thread', 'lock', 'cond', 'tls' modules, on mingw systems
the installing user can choose among
--enable-threads=posix       (which uses the mingw winpthreads library)
and
--enable-threads=windows     (which uses native Windows code, like on MSVC).
The default currently is --enable-threads=posix.
The package developer can change the default by placing an invocation to
gl_AVOID_WINPTHREAD in the configure.ac file.
Why is this useful? Because the pthread-tss test hangs with
--enable-threads=posix
but works fine with
--enable-threads=windows</p>

</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #777;">

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/issues/803">view it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
<a href="https://gitlab.com/sent_notifications/8a3ba916b3ab92793419bd1b4d74ae20/unsubscribe">unsubscribe</a>
from this thread or
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.com/gnutls/gnutls/issues/803"}}</script>


</p>
</div>
</body>
</html>