![]() |
cello
JUCE ValueTrees for Humans
|
Class to manage bi-directional sync between two Objects in different threads, preventing feedback loops. Each SyncController contains a pair of Sync objects, one for each direction of the sync. More...
#include <cello_sync.h>
Public Member Functions | |
| SyncController (Object &obj1, juce::Thread *threadForObj1, Object &obj2, juce::Thread *threadForObj2) | |
| Construct a new SyncController object. | |
| SyncController (const SyncController &)=delete | |
| SyncController & | operator= (const SyncController &)=delete |
| SyncController (SyncController &&)=delete | |
| SyncController & | operator= (SyncController &&)=delete |
| void | performNextUpdate (juce::Thread *thread) |
| Perform the next update for the given thread. | |
| void | performAllUpdates (juce::Thread *thread) |
| Perform all updates for the given thread. | |
Friends | |
| class | Sync |
Class to manage bi-directional sync between two Objects in different threads, preventing feedback loops. Each SyncController contains a pair of Sync objects, one for each direction of the sync.
| cello::SyncController::SyncController | ( | Object & | obj1, |
| juce::Thread * | threadForObj1, | ||
| Object & | obj2, | ||
| juce::Thread * | threadForObj2 ) |
Construct a new SyncController object.
| void cello::SyncController::performNextUpdate | ( | juce::Thread * | thread | ) |
Perform the next update for the given thread.
| thread | pointer to the thread to perform the update |