Mercurial > hg > beaglert
comparison core/ClockSyncThread.cpp @ 152:8f98b32d0e23 ClockSync
Last commit on this branch for a while. Overall not very succesful
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Mon, 05 Oct 2015 13:06:14 +0100 |
parents | 134bff10e561 |
children |
comparison
equal
deleted
inserted
replaced
151:e9c9404e3d1f | 152:8f98b32d0e23 |
---|---|
21 stopThread(1000); | 21 stopThread(1000); |
22 #else | 22 #else |
23 stopThread(); | 23 stopThread(); |
24 #endif /* USE_JUCE */ | 24 #endif /* USE_JUCE */ |
25 } | 25 } |
26 | |
27 ClockSync* gClockSync; | |
26 void ClockSyncThread::init(bool isSlave, int aPort, VirtualClock &aVirtualClock){ | 28 void ClockSyncThread::init(bool isSlave, int aPort, VirtualClock &aVirtualClock){ |
29 gClockSync = &clockSync; | |
27 setVirtualClock(aVirtualClock); | 30 setVirtualClock(aVirtualClock); |
28 listening=false; | 31 listening=false; |
29 clockSync.init(isSlave, aPort, *virtualClock); | 32 clockSync.init(isSlave, aPort, *virtualClock); |
30 #ifdef USE_JUCE | 33 #ifdef USE_JUCE |
31 startThread(5); | 34 startThread(5); |