Mutex class
A lock of the operating system, held for short sections.
On this page
- Use
import ThinkMeta.ConcurrentTasks.Platform.Mutex;- Namespace
ThinkMeta::ConcurrentTasks::Platform- Platforms
- Windows, Linux
Syntax
class MutexRemarks
Not recursive. Waiting blocks the thread, also a scheduler thread that runs a task: for sections shared between tasks use Synchronization::CriticalSection. Needs no initialization and no clean-up.
See also
Constructors
Mutex
Methods
Lock
Takes the lock, waiting while another thread holds it.
Syntax
void Lock() noexcept;Unlock
Generated from ThinkMeta.ConcurrentTasks.API @ da816bc (2026-11-06).