MCPcopy Create free account
hub / github.com/WheretIB/nullc / DispatchRegister

Function DispatchRegister

NULLC/nullc_remote.h:194–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192 volatile int* DispatchRegister(DebugCommand event, volatile int* signal)
193#else
194 DispatcherEvent DispatchRegister(DebugCommand event, pthread_mutex_t* signal_m, pthread_cond_t* signal_c)
195#endif
196 {
197 assert(recordCount < MAX_DISPATCH_CLIENTS);
198 DispatchRecord &rec = records[recordCount++];
199 rec.cmd = event;
200#if defined(_WIN32) || defined(_WIN64)
201 rec.ready = signal;
202 return &processed;
203#else
204 rec.ready_c = signal_c;
205 rec.ready_m = signal_m;
206 DispatcherEvent e;
207 e.processed_c = &processed_c;
208 e.processed_m = &processed_m;
209 return e;
210#endif
211
212 }
213
214 PipeData GetData()
215 {

Callers 2

PipeDebugBreakFunction · 0.85
GeneralCommandThreadFunction · 0.85

Calls 1

assertFunction · 0.85

Tested by

no test coverage detected