Vuo 2.4.4
Loading...
Searching...
No Matches
VuoRuntimePersistentState.cc
Go to the documentation of this file.
1
11
12#include "VuoCompositionDiff.hh"
13#include "VuoNodeRegistry.hh"
16#include "VuoRuntimeState.hh"
17#include "VuoThreadManager.hh"
18
23{
24 this->workingDirectory = (strlen(workingDirectory) > 0 ? workingDirectory : getCurrentWorkingDirectory());
25
26 lastEventId = 0;
27
28 _isStopRequested = false;
29
30 triggerWorkersScheduled = dispatch_group_create();
31
33 nodeRegistry = new VuoNodeRegistry(this);
37}
38
43{
44 dispatch_release(triggerWorkersScheduled);
45
46 delete compositionDiff;
47 delete nodeRegistry;
48 delete communicator;
49 delete threadManager;
51}
52
57{
58 // Keep consistent with VuoGetWorkingDirectory().
59 char currentWorkingDirectory[PATH_MAX+1];
60 getcwd(currentWorkingDirectory, PATH_MAX+1);
61 return currentWorkingDirectory;
62}
63
68{
69 return strdup(workingDirectory.c_str());
70}
71
76{
77 return __sync_add_and_fetch(&lastEventId, 1);
78}
79
84{
85 return _isStopRequested;
86}
87
92{
93 _isStopRequested = isStopRequested;
94}
95
101{
102 return triggerWorkersScheduled;
103}
104
105extern "C"
106{
107
111unsigned long vuoGetNextEventId(VuoCompositionState *compositionState)
112{
115}
116
125
126}