#include <juce_AudioWorkgroup.h>
Created by AudioWorkgroup to join the calling thread to a workgroup. To leave the workgroup again, destroy the WorkgroupToken.
- See also
- AudioWorkgroup
Definition at line 35 of file juce_AudioWorkgroup.h.
◆ Erased
◆ WorkgroupToken() [1/3]
juce::WorkgroupToken::WorkgroupToken |
( |
Erased |
e | ) |
|
|
inlineexplicit |
◆ WorkgroupToken() [2/3]
juce::WorkgroupToken::WorkgroupToken |
( |
| ) |
|
|
default |
Creates a disengaged WorkgroupToken, i.e. create a token without joining the thread to a workgroup.
◆ ~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/3]
◆ getTokenProvider()
const TokenProvider * juce::WorkgroupToken::getTokenProvider |
( |
| ) |
const |
|
inline |
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.
Definition at line 80 of file juce_AudioWorkgroup.h.
Referenced by operator bool().
◆ operator bool()
juce::WorkgroupToken::operator bool |
( |
| ) |
const |
|
inlineexplicit |
◆ operator=()
◆ 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.
Definition at line 86 of file juce_AudioWorkgroup.h.
The documentation for this class was generated from the following file: