20 portContext->
event =
false;
47 nodeContext->
semaphore = dispatch_semaphore_create(1);
54 nodeContext->
outputEvents = (
bool *)calloc(outputEventCount,
sizeof(
bool));
83 free(portContext->
data);
102 dispatch_release(nodeContext->
semaphore);
116 portContext->
event = event;
124 portContext->
data = data;
140 return portContext->
event;
148 return portContext->
data;
281 vector<unsigned long> *executingEventIds =
static_cast< vector<unsigned long> *
>(nodeContext->
executingEventIds);
282 executingEventIds->clear();
283 executingEventIds->push_back(eventId);
293 vector<unsigned long> *executingEventIds =
static_cast< vector<unsigned long> *
>(nodeContext->
executingEventIds);
294 if (! executingEventIds->empty())
295 executingEventIds->push_back(eventId);
306 vector<unsigned long> *executingEventIds =
static_cast< vector<unsigned long> *
>(nodeContext->
executingEventIds);
307 auto found = find(executingEventIds->begin(), executingEventIds->end(), eventId);
308 if (found != executingEventIds->end())
310 executingEventIds->erase(found);
311 return executingEventIds->empty();
324 vector<unsigned long> *executingEventIds =
static_cast< vector<unsigned long> *
>(nodeContext->
executingEventIds);
325 return executingEventIds->at(0);