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

Function spawn

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

Source from the content-addressed store, hash-verified

3979
3980
3981UPID spawn(ProcessBase* process, bool manage)
3982{
3983 process::initialize();
3984
3985 if (process != nullptr) {
3986 // If using a manual clock, try and set current time of process
3987 // using happens before relationship between spawner (__process__)
3988 // and spawnee (process)!
3989 if (Clock::paused()) {
3990 Clock::update(process, Clock::now(__process__));
3991 }
3992
3993 return process_manager->spawn(process, manage);
3994 } else {
3995 return UPID();
3996 }
3997}
3998
3999
4000void terminate(const UPID& pid, bool inject)

Callers 15

BasicAuthenticatorMethod · 0.70
DataMethod · 0.70
JWTAuthenticatorMethod · 0.70
DataMethod · 0.70
ServerMethod · 0.70
RouteMethod · 0.70
initializeFunction · 0.70
proxyMethod · 0.70
waitFunction · 0.70
AuthenticatorManagerMethod · 0.70
LatchMethod · 0.70

Calls 4

initializeFunction · 0.70
updateFunction · 0.50
UPIDClass · 0.50
spawnMethod · 0.45

Tested by 15

TEST_FFunction · 0.40
TESTFunction · 0.40
runMethod · 0.40
TEST_FFunction · 0.40
donateMethod · 0.40
SetUpMethod · 0.40
afterDelayMethod · 0.40
HttpMethod · 0.40
FileServerMethod · 0.40
TESTFunction · 0.40
startMethod · 0.40