Rodin::Threads namespace

Module containing various tools for working with threads.

Classes

template<class Resource, class Lock = Mutex>
class Mutable
A thread-safe mutable wrapper for a resource.
template<class Resource>
class Shared
A thread-safe wrapper for shared resources.
class ThreadPool
A thread pool wrapper for managing concurrent tasks.
template<class Resource>
class Unsafe
A wrapper that manages unsafe access to a resource.
template<class T, class FuncName>
class UnsafeAccessException
Exception thrown when unsafe concurrent access is detected.

Typedefs

using Mutex = std::mutex
Alias for std::mutex.

Typedef documentation

using Rodin::Threads::Mutex = std::mutex

Alias for std::mutex.

This alias defines Mutex as an alternative name for std::mutex, which is used throughout Rodin for mutual exclusion in multithreaded contexts.