On 10/26/2026 2:59 AM, bolt…@caprica.universe wrote:
> On Sun, 25 Oct 2026 22:56:19 +0200
> Michael S <alre…@yahoo.com> gabbled:
>> On Sun, 25 Oct 2026 08:41:48 -0000 (UTC)
>> bolt…@caprica.universe wrote:
>>
>>> On Sun, 25 Oct 2026 00:28:19 -0000 (UTC)
>>> cro…@spitfire.i.gajendra.net (Dan Cross) gabbled:
>>>> In article <2026…@yahoo.com>,
>>>>> Now, would it be the first thing I would want like addition to C++
>>>>> standard library? No it would not be.
>>>>> The first thing would be IPv4 communication, sockets, poll etc...
>>>>
>>>> POSIX has all of that. POSIX also has a process model. Why not
>>>> just make POSIX a part of the language, then? (Answer that and
>>>> you may start to understand why this is harder than it looks
>>>> for C++ [and C].)
>>>
>>> No, it isn't. How similar do you think the posix and windows threading
>>> model/api are? Yet somehow C++ provides a common wrapper for both.
>>
>> Actually, implementing C++11 (or C11) threads fully in user space on
>> pre-Vista Win32 (i.e. before addition of support for conditional
>> variables to OS API) would be quite challenging. I don't know if
>> anybody bothered.
>> I think that it is possible, but if you want it robust then it (cond.
>> variables) will cost you significant overhead relatively to "native"
>> synchronization primitives.
>
> C++ threading didn't have 3 level locking until 2017 making it effectively
> useless IMO. Perhaps that was down to the lowest common denominator called
> Windows.
>
3 level locking? What do you mean?