Re: help for example with Condition

2025-09-11 Thread Mikhail via Digitalmars-d-learn
On Thursday, 11 September 2025 at 09:51:55 UTC, Mikhail wrote: On Thursday, 11 September 2025 at 09:40:22 UTC, novicetoo wrote: cond and mutex are global variables, and "Starting with dmd version 2.030, the default storage class for statics and globals will be thread local storage (TLS)" http

Re: help for example with Condition

2025-09-11 Thread Mikhail via Digitalmars-d-learn
On Thursday, 11 September 2025 at 09:40:22 UTC, novicetoo wrote: cond and mutex are global variables, and "Starting with dmd version 2.030, the default storage class for statics and globals will be thread local storage (TLS)" https://dlang.org/articles/migrate-to-shared.html I don't understan

help for example with Condition

2025-09-11 Thread Mikhail via Digitalmars-d-learn
I wrote simple example to learn how the work Conditions. But program closed with signal, what's wrong? import std.stdio; import core.thread; import core.sync.condition; import core.sync.mutex; Condition cond; Mutex mutex; void threadFunction() { writeln("This is running in a separate threa