MCPcopy Create free account
hub / github.com/Kitware/CMake / Process

Method Process

Source/cmWorkerPool.cxx:578–596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

576}
577
578bool cmWorkerPoolInternal::Process()
579{
580 // Reset state flags
581 this->Processing = true;
582 this->Aborting = false;
583 // Initialize libuv asynchronous request
584 this->UVRequestBegin.init(*this->UVLoop, &cmWorkerPoolInternal::UVSlotBegin,
585 this);
586 this->UVRequestEnd.init(*this->UVLoop, &cmWorkerPoolInternal::UVSlotEnd,
587 this);
588 // Send begin request
589 this->UVRequestBegin.send();
590 // Run libuv loop
591 bool success = (uv_run(this->UVLoop.get(), UV_RUN_DEFAULT) == 0);
592 // Update state flags
593 this->Processing = false;
594 this->Aborting = false;
595 return success;
596}
597
598void cmWorkerPoolInternal::Abort()
599{

Callers

nothing calls this directly

Calls 4

uv_runFunction · 0.50
initMethod · 0.45
sendMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected