<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dw="https://www.dreamwidth.org">
  <id>tag:dreamwidth.org,2017-04-20:3147171</id>
  <title>lmemsm</title>
  <subtitle>lmemsm</subtitle>
  <author>
    <name>lmemsm</name>
  </author>
  <link rel="alternate" type="text/html" href="https://lmemsm.dreamwidth.org/"/>
  <link rel="self" type="text/xml" href="https://lmemsm.dreamwidth.org/data/atom"/>
  <updated>2019-06-26T14:50:49Z</updated>
  <dw:journal username="lmemsm" type="personal"/>
  <entry>
    <id>tag:dreamwidth.org,2017-04-20:3147171:5940</id>
    <link rel="alternate" type="text/html" href="https://lmemsm.dreamwidth.org/5940.html"/>
    <link rel="self" type="text/xml" href="https://lmemsm.dreamwidth.org/data/atom/?itemid=5940"/>
    <title>POSIX threads, C11 threads and thread libraries for Windows and other systems</title>
    <published>2017-04-20T19:39:43Z</published>
    <updated>2019-06-26T14:50:49Z</updated>
    <category term="thread libraries"/>
    <category term="threads"/>
    <category term="c11 threads"/>
    <category term="semaphores"/>
    <category term="pthreads"/>
    <category term="posix threads"/>
    <category term="c++11 threads"/>
    <category term="benaphores"/>
    <dw:security>public</dw:security>
    <dw:reply-count>0</dw:reply-count>
    <summary type="html">If you need pthreads for Windows MinGW projects, most projects used pthreads-win32 from Red Hat.  However, it wasn't completely compatible with POSIX versions of pthreads.  It also uses LGPL licensing which can be somewhat restrictive with MIT and BSD style licensed projects.  So, the MinGW64 project wrote their own pthreads implementation from scratch which is available at the MinGW64 web site.  Looking at the code, I wasn't sure if the MinGW64 pthreads implementation would work with the MinGW (www.mingw.org) 32 bit compiler as is or if it would need patching.  So, I decided to use another alternative for my own projects.  Another option on Windows is the midipix project which uses the musl C library pthread implementation.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;(&lt;a href="https://lmemsm.dreamwidth.org/5940.html"&gt;Read more ...&lt;/a&gt;)&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=lmemsm&amp;ditemid=5940" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</summary>
  </entry>
</feed>
