MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / dispatch

Method dispatch

dds/DCPS/DispatchService.cpp:74–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74DispatchService::DispatchStatus DispatchService::dispatch(FunPtr fun, void* arg)
75{
76 if (!fun) {
77 return DS_ERROR;
78 }
79
80 ACE_Guard<ACE_Thread_Mutex> guard(mutex_);
81 if (allow_dispatch_) {
82 event_queue_.push_back(std::make_pair(fun, arg));
83 cv_.notify_one();
84 return DS_SUCCESS;
85 }
86 return DS_ERROR;
87}
88
89DispatchService::TimerId DispatchService::schedule(FunPtr fun, void* arg, const MonotonicTimePoint& expiration)
90{

Callers 12

on_dataMethod · 0.45
enqueueFunction · 0.45
enableMethod · 0.45
on_data_availableMethod · 0.45
process_acknackMethod · 0.45
match_continueMethod · 0.45
on_data_availableMethod · 0.45

Calls 1

notify_oneMethod · 0.80

Tested by

no test coverage detected