<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[pthreads mit EINTR-Check in boost]]></title><description><![CDATA[<p>Auf der einen Seite lese ich:</p>
<blockquote>
<p>Pthreads function return values</p>
<p>Most pthreads functions return 0 on success, and an error number of failure.<br />
Note that the pthreads functions do not set errno. For each of the pthreads<br />
functions that can return an error, POSIX.1-2001 specifies that the function<br />
can never fail with the error EINTR.</p>
</blockquote>
<p>Auf der anderen Seite finde ich in der mutex-Klasse von boost.thread:</p>
<pre><code class="language-cpp">void lock()
{
    int res;
    do
    {
        res = pthread_mutex_lock(&amp;m);
    } while (res == EINTR);
...
</code></pre>
<p>Wie passt das zusammen?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/313489/pthreads-mit-eintr-check-in-boost</link><generator>RSS for Node</generator><lastBuildDate>Sun, 02 Aug 2026 03:55:02 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/313489.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 01 Feb 2013 12:41:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to pthreads mit EINTR-Check in boost on Fri, 01 Feb 2013 12:41:50 GMT]]></title><description><![CDATA[<p>Auf der einen Seite lese ich:</p>
<blockquote>
<p>Pthreads function return values</p>
<p>Most pthreads functions return 0 on success, and an error number of failure.<br />
Note that the pthreads functions do not set errno. For each of the pthreads<br />
functions that can return an error, POSIX.1-2001 specifies that the function<br />
can never fail with the error EINTR.</p>
</blockquote>
<p>Auf der anderen Seite finde ich in der mutex-Klasse von boost.thread:</p>
<pre><code class="language-cpp">void lock()
{
    int res;
    do
    {
        res = pthread_mutex_lock(&amp;m);
    } while (res == EINTR);
...
</code></pre>
<p>Wie passt das zusammen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2295351</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2295351</guid><dc:creator><![CDATA[knivil]]></dc:creator><pubDate>Fri, 01 Feb 2013 12:41:50 GMT</pubDate></item><item><title><![CDATA[Reply to pthreads mit EINTR-Check in boost on Fri, 01 Feb 2013 13:00:10 GMT]]></title><description><![CDATA[<p>Internet ausgefallen?<br />
<a href="https://svn.boost.org/trac/boost/ticket/6200" rel="nofollow">https://svn.boost.org/trac/boost/ticket/6200</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2295356</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2295356</guid><dc:creator><![CDATA[Google-Mania-Wahnsinn]]></dc:creator><pubDate>Fri, 01 Feb 2013 13:00:10 GMT</pubDate></item><item><title><![CDATA[Reply to pthreads mit EINTR-Check in boost on Fri, 01 Feb 2013 13:13:31 GMT]]></title><description><![CDATA[<p>Leider erst auf Seite 3.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2295358</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2295358</guid><dc:creator><![CDATA[knivil]]></dc:creator><pubDate>Fri, 01 Feb 2013 13:13:31 GMT</pubDate></item></channel></rss>