Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: [C/POSIX] pthread_exit() Date: Sat, 23 Jul 2016 20:45:31 -0700 Organization: None to speak of Lines: 31 Message-ID: References: <16443da7-cef3-04d5-ced6-1fb40fd05b64@verizon.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="945944de09706c9b4e29b53c9d2efdc2"; logging-data="7541"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18DScpa8ltJEWwHw6D8fn1o" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:2fpuGpTAgnxPiCPNWK6W3saCo/8= sha1:ht5ujzcgOMFZUrsLD2RbyyfkH0A= Xref: csiph.com comp.lang.c:90887 "James R. Kuyper" writes: > On 07/23/2016 05:43 PM, Randy Howard wrote: [...] >> I first started using pthreads on Windows in the late 90s. It's not >> supported directly by microsoft but neither is C11, or even C99. >> >> It works quite well. Nuff said. > > It works well for you - in your particular situation, which does not > justify dismissing as irrelevant alternatives that might make more sense > to someone working in a very different situation. All that's needed is > someone who needs to port their code to two or more groups of platforms, > all of which have C2011 available, but at least one of which does not > support POSIX. Can you justify implying that no one is in this position, > and that no one ever will be? I tend to agree -- but it's complicated by the fact that C11 thread support is an optional feature. I'm disappointed by the lack of support in glibc. (My disappointment is of course tempered by the fact that glibc is free and I haven't contributed to the work of implementing it.) I've seen third-party libraries that at least attempt to support C11 threads, probably on top of pthreads. [...] -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"