Created by AudioWorkgroup to join the calling thread to a workgroup.
More...
#include <juce_AudioWorkgroup.h>
|
using | Erased = FixedSizeFunction<64, const TokenProvider*()> |
|
Created by AudioWorkgroup to join the calling thread to a workgroup.
To leave the workgroup again, destroy the WorkgroupToken.
- See also
- AudioWorkgroup
◆ Erased
◆ WorkgroupToken() [1/4]
WorkgroupToken::WorkgroupToken |
( |
Erased | e | ) |
|
|
explicit |
◆ WorkgroupToken() [2/4]
WorkgroupToken::WorkgroupToken |
( |
| ) |
|
|
default |
◆ ~WorkgroupToken()
WorkgroupToken::~WorkgroupToken |
( |
| ) |
|
|
default |
If the token joined the calling thread to a workgroup during construction, the destructor will cause the calling thread to leave that workgroup.
◆ WorkgroupToken() [3/4]
◆ WorkgroupToken() [4/4]
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ operator bool()
WorkgroupToken::operator bool |
( |
| ) |
const |
|
explicit |
◆ getTokenProvider()
const TokenProvider * WorkgroupToken::getTokenProvider |
( |
| ) |
const |
|
nodiscard |
The result of this function can be compared to nullptr to check whether the token successfully joined the calling thread to a workgroup.
Used in the implementation to provide platform-specific information about this token.
Referenced by operator bool().
◆ reset()
void WorkgroupToken::reset |
( |
| ) |
|
If this token was engaged by joining a workgroup, leaves that workgroup and disengages the token.
After this call, getTokenProvider() will return nullptr.
The documentation for this class was generated from the following file: