MCPcopy Create free account
hub / github.com/apache/mesos / enqueue

Method enqueue

3rdparty/libprocess/src/process.cpp:3328–3347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3326
3327
3328void ProcessManager::enqueue(ProcessBase* process)
3329{
3330 CHECK(process != nullptr);
3331
3332 // If libprocess is shutting down and the processing threads
3333 // are currently joining, then do not enqueue the process.
3334 if (joining_threads.load()) {
3335 VLOG(1) << "Libprocess shutting down, cannot enqueue process: "
3336 << process->pid.id;
3337
3338 return;
3339 }
3340
3341 // TODO(benh): Check and see if this process has its own thread. If
3342 // it does, push it on that threads runq, and wake up that thread if
3343 // it's not running. Otherwise, check and see which thread this
3344 // process was last running on, and put it on that threads runq.
3345
3346 runq.enqueue(process);
3347}
3348
3349
3350ProcessBase* ProcessManager::dequeue()

Callers 3

_deliverMethod · 0.45
TESTFunction · 0.45
TESTFunction · 0.45

Calls 2

storeMethod · 0.65
loadMethod · 0.45

Tested by 2

TESTFunction · 0.36
TESTFunction · 0.36