|
JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins
« « « Anklang Documentation |
Created by AudioWorkgroup to join the calling thread to a workgroup. More...
#include "juce_AudioWorkgroup.h"
Classes | |
| class | TokenProvider |
Public Types | |
| using | Erased = FixedSizeFunction< 64, const TokenProvider *()> |
Public Member Functions | |
| WorkgroupToken (Erased e) | |
| ~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 (const WorkgroupToken &)=delete | |
| WorkgroupToken (WorkgroupToken &&) noexcept=default | |
| WorkgroupToken & | operator= (const WorkgroupToken &)=delete |
| WorkgroupToken & | operator= (WorkgroupToken &&)=default |
| operator bool () const | |
| Returns true if and only if getTokenProvider() returns non-null. | |
| const TokenProvider * | getTokenProvider () const |
| The result of this function can be compared to nullptr to check whether the token successfully joined the calling thread to a workgroup. | |
| void | reset () |
| If this token was engaged by joining a workgroup, leaves that workgroup and disengages the token. | |
Created by AudioWorkgroup to join the calling thread to a workgroup.
To leave the workgroup again, destroy the WorkgroupToken.
@tags{Audio}
Definition at line 35 of file juce_AudioWorkgroup.h.
| class juce::WorkgroupToken::TokenProvider |
Definition at line 164 of file juce_AudioWorkgroup.cpp.
| using juce::WorkgroupToken::Erased = FixedSizeFunction<64, const TokenProvider*()> |
Definition at line 42 of file juce_AudioWorkgroup.h.
|
explicit |
Definition at line 48 of file juce_AudioWorkgroup.h.
| const TokenProvider * juce::WorkgroupToken::getTokenProvider | ( | ) | const |
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.
|
explicit |
Returns true if and only if getTokenProvider() returns non-null.
Definition at line 73 of file juce_AudioWorkgroup.h.
| void juce::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.
Definition at line 86 of file juce_AudioWorkgroup.h.