#include <juce_AudioWorkgroup.h>
Public Types | |
| using | Erased = FixedSizeFunction<64, const TokenProvider*()> |
Public Member Functions | |
| WorkgroupToken (Erased e) | |
| WorkgroupToken ()=default | |
| ~WorkgroupToken ()=default | |
| WorkgroupToken (const WorkgroupToken &)=delete | |
| WorkgroupToken (WorkgroupToken &&) noexcept=default | |
| WorkgroupToken & | operator= (const WorkgroupToken &)=delete |
| WorkgroupToken & | operator= (WorkgroupToken &&)=default |
| operator bool () const | |
| const TokenProvider * | getTokenProvider () const |
| void | reset () |
Created by AudioWorkgroup to join the calling thread to a workgroup. To leave the workgroup again, destroy the WorkgroupToken.
Definition at line 35 of file juce_AudioWorkgroup.h.
| using juce::WorkgroupToken::Erased = FixedSizeFunction<64, const TokenProvider*()> |
Definition at line 42 of file juce_AudioWorkgroup.h.
|
inlineexplicit |
Creates a WorkgroupToken from a function returning a TokenProvider.
Definition at line 48 of file juce_AudioWorkgroup.h.
Referenced by operator=(), and WorkgroupToken().
|
default |
Creates a disengaged WorkgroupToken, i.e. create a token without joining the thread to a workgroup.
|
default |
If the token joined the calling thread to a workgroup during construction, the destructor will cause the calling thread to leave that workgroup.
|
delete |
|
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.
Definition at line 80 of file juce_AudioWorkgroup.h.
Referenced by operator bool().
|
inlineexplicit |
Returns true if and only if getTokenProvider() returns non-null.
Definition at line 73 of file juce_AudioWorkgroup.h.
|
delete |
|
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.
Referenced by juce::AudioWorkgroup::join().