Details of namespace aworx::lib::threads.
Variables | |
| ALIB_API std::mutex | moduleLock |
| ALIB_API HashMap< std::thread::id, Thread * > | threadMap |
Functions | |
| ALIB_API Thread * | getThread (std::thread::id c11ID) |
| void | threadStart (Thread *thread) |
Retrieves the ALib object associated with the given C++ 11 thread id. In case the threadID is not found in the hash table, the given id is considered a system thread and is entered into the hash table.
| c11ID | The native thread id. |
Definition at line 96 of file thread.cpp.
| void threadStart | ( | Thread * | thread | ) |
Internal method to start a thread.
| thread | The ALib thread object to start. |
Definition at line 89 of file thread.cpp.
| ALIB_API std::mutex moduleLock |
The internal mutex used with operations like starting, ending or finding thread objects.
The hash map used to find the current thread object. The object uses default values for HashTable::BaseLoadFactor and HashTable::MaxLoadFactor. Depending on the use of threads by a using application, these values might be modified prior to starting the first phase of bootstrapping ALib.
If so, an initial call to HashTable::Reserve may be likewise be performed.
std::unordered_map.