MCPcopy Create free account
hub / github.com/3rdparty/libprocess / spawn

Function spawn

src/process.cpp:3977–3993  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3975
3976
3977UPID spawn(ProcessBase* process, bool manage)
3978{
3979 process::initialize();
3980
3981 if (process != nullptr) {
3982 // If using a manual clock, try and set current time of process
3983 // using happens before relationship between spawner (__process__)
3984 // and spawnee (process)!
3985 if (Clock::paused()) {
3986 Clock::update(process, Clock::now(__process__));
3987 }
3988
3989 return process_manager->spawn(process, manage);
3990 } else {
3991 return UPID();
3992 }
3993}
3994
3995
3996void 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
TEST_FFunction · 0.50

Calls 3

UPIDClass · 0.85
spawnMethod · 0.80
initializeFunction · 0.70

Tested by 10

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
TESTFunction · 0.40