Unused druntime code: Barrier, ReadWriteMutex, Condition
Denis Feklushkin
feklushkin.denis at gmail.com
Mon Jun 15 14:23:34 UTC 2026
On Monday, 15 June 2026 at 10:35:39 UTC, Denis Feklushkin wrote:
> On Monday, 15 June 2026 at 09:41:00 UTC, Denis Feklushkin wrote:
>
>> Most likely, these primitives do not exist in any OS - they
>> are too high-level and can be implemented on the basis of
>> "more primitive" primitives. (Posix implementation just
>> provides convient wrapper, I think)
>
> It is possible make PR on this base which will satisfy
> everyone. However, I'll wait for information about Windows (see
> previous message).
The attempt to use standard Semaphore and Mutex in ondition
implementation failed because the current Condition semantics
requires @nogc, but Mutex and Semaphore are classes and
std.typecons.scoped isn't available in druntime.
This is another argument for moving this code to Phobos
More information about the Digitalmars-d
mailing list