bolt…@caprica.universe writes:
>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.
>
Mind defining your terminology? "3 level locking", in particular?
Assigning a canonical "lock number" to each lock, and failing a lock
request for a lock with a lower number than that already held is
a design pattern that has been around since 1980 (in Burroughs
mainframes it was implemented in hardware). Easy enough to do
prior to C++17 in software.
And your assertion that a language that doesn't support it intrinsically
is "useless" is ridiculous.