Contains threading definitions.
Modules | |
| tasks | |
| Contains tasks definitions.  | |
Classes | |
| class | xtd::threading::auto_reset_event | 
| Represents a thread synchronization event that, when signaled, resets automatically after releasing a single waiting thread. This class cannot be inherited.  More... | |
| class | xtd::threading::barrier | 
| Enables multiple tasks to cooperatively work on an algorithm in parallel through multiple phases.  More... | |
| class | xtd::threading::cancellation_token | 
| Propagates notification that operations should be canceled.  More... | |
| class | xtd::threading::cancellation_token_registration | 
| Propagates notification that operations should be canceled.  More... | |
| class | xtd::threading::cancellation_token_source | 
| Signals to a xtd::threading::cancellation_token that it should be canceled.  More... | |
| class | xtd::threading::countdown_event | 
| Represents a synchronization primitive that is signaled when its count reaches zero.  More... | |
| class | xtd::threading::event_wait_handle | 
| Represents a thread synchronization event.  More... | |
| class | xtd::threading::interlocked | 
| Provides atomic operations for variables that are shared by multiple threads.  More... | |
| class | xtd::threading::jthread | 
| Creates and controls an automatically rejoins on destruction thread, sets its priority, and gets its status.  More... | |
| class | xtd::threading::lock_guard | 
| Provides a mechanism that synchronizes access to objects with xtd::threading::monitor.  More... | |
| class | xtd::threading::manual_reset_event | 
| Represents a thread synchronization event that, when signaled, must be reset manually. This class cannot be inherited.  More... | |
| class | xtd::threading::monitor | 
| Provides a mechanism that synchronizes access to objects.  More... | |
| class | xtd::threading::mutex | 
| A synchronization primitive that can also be used for interprocess synchronization.  More... | |
| class | xtd::threading::registered_wait_handle | 
| A synchronization primitive that can also be used for interprocess synchronization.  More... | |
| class | xtd::threading::semaphore | 
| Limits the number of threads that can access a resource or pool of resources concurrently.  More... | |
| class | xtd::threading::spin_lock | 
| Provides a mutual exclusion lock primitive where a thread trying to acquire the lock waits in a loop repeatedly checking until the lock becomes available.  More... | |
| class | xtd::threading::thread | 
| Creates and controls a thread, sets its priority, and gets its status.  More... | |
| class | xtd::threading::thread_local_object< value_t > | 
| Provides thread-local storage of data.  More... | |
| class | xtd::threading::thread_pool | 
| Provides a pool of threads that can be used to execute tasks, post work items, process asynchronous I/O, wait on behalf of other threads, and process timers.  More... | |
| class | xtd::threading::timeout | 
| Contains a constant used to specify an infinite amount of time. This class cannot be inherited.  More... | |
| class | xtd::threading::timer | 
| Provides a mechanism for executing a method on a thread pool thread at specified intervals. This class cannot be inherited.  More... | |
| class | xtd::threading::wait_handle | 
| Encapsulates operating system specific objects that wait for exclusive access to shared resources.  More... | |
Typedefs | |
| using | xtd::lock = xtd::threading::lock_guard | 
| Provides a mechanism that synchronizes access to objects with xtd::threading::monitor.   | |
| using xtd::lock = typedef xtd::threading::lock_guard | 
#include <xtd.core/include/xtd/lock.hpp>
Provides a mechanism that synchronizes access to objects with xtd::threading::monitor.
      
  | 
  strong | 
#include <xtd.core/include/xtd/threading/event_reset_mode.hpp>
Indicates whether an xtd::threading::event_wait_handle is reset automatically or manually after receiving a signal.
| Enumerator | |
|---|---|
| auto_reset | When signaled, the xtd::threading::event_wait_handle resets automatically after releasing a single thread. If no threads are waiting, the xtd::threading::event_wait_handle remains signaled until a thread blocks, and resets after releasing the thread.  | 
| manual_reset | When signaled, the xtd::threading::event_wait_handle releases all waiting threads and remains signaled until it is manually reset.  | 
      
  | 
  strong | 
#include <xtd.core/include/xtd/threading/thread_priority.hpp>
Specifies the scheduling priority of a system::threading::thread.
| Enumerator | |
|---|---|
| lowest | The system::threading::thread can be scheduled after threads with any other priority.  | 
| below_normal | The system::threading::thread can be scheduled after threads with thread_priority::normal priority and before those with thread_priority::lowest priority.  | 
| normal | The system::threading::thread can be scheduled after threads with thread_priority::above_normal priority and before those with thread_priority::below_normal priority. Threads have thread_priority::normal priority by default.  | 
| above_normal | The system::threading::thread can be scheduled after threads with thread_priority::highest priority and before those with thread_priority::normal priority.  | 
| highest | The system::threading::thread can be scheduled before threads with any other priority.  | 
      
  | 
  strong | 
#include <xtd.core/include/xtd/threading/thread_state.hpp>
Specifies the execution states of a System::Threading::Thread.