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

Method ProcessBase

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

Source from the content-addressed store, hash-verified

3482
3483
3484ProcessBase::ProcessBase(const string& id)
3485 : events(new EventQueue()),
3486 reference(std::make_shared<ProcessBase*>(this)),
3487 gate(std::make_shared<Gate>())
3488{
3489 process::initialize();
3490
3491 pid.id = id != "" ? id : ID::generate();
3492 pid.address = __address__;
3493 pid.addresses.v6 = __address6__;
3494
3495 // If using a manual clock, try and set current time of process
3496 // using happens before relationship between creator (__process__)
3497 // and createe (this)!
3498 if (Clock::paused()) {
3499 Clock::update(this, Clock::now(__process__), Clock::FORCE);
3500 }
3501}
3502
3503
3504ProcessBase::~ProcessBase()

Callers

nothing calls this directly

Calls 3

generateFunction · 0.85
initializeFunction · 0.70
updateFunction · 0.50

Tested by

no test coverage detected