Created by AudioWorkgroup to join the calling thread to a workgroup.
To leave the workgroup again, destroy the WorkgroupToken.
- See also
- AudioWorkgroup
The documentation for this class was generated from the following file:
|
| using | Erased = FixedSizeFunction<64, const TokenProvider*()> |
◆ Erased
◆ WorkgroupToken() [1/4]
| juce::WorkgroupToken::WorkgroupToken |
( |
Erased | e | ) |
|
|
inlineexplicit |
◆ WorkgroupToken() [2/4]
| juce::WorkgroupToken::WorkgroupToken |
( |
| ) |
|
|
default |
◆ ~WorkgroupToken()
| juce::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()
| juce::WorkgroupToken::operator bool |
( |
| ) |
const |
|
inlineexplicit |
◆ getTokenProvider()
| const TokenProvider * juce::WorkgroupToken::getTokenProvider |
( |
| ) |
const |
|
inlinenodiscard |
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 juce::WorkgroupToken::reset |
( |
| ) |
|
|
inline |
If this token was engaged by joining a workgroup, leaves that workgroup and disengages the token.
After this call, getTokenProvider() will return nullptr.