| 3482 | |
| 3483 | |
| 3484 | ProcessBase::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 | |
| 3504 | ProcessBase::~ProcessBase() |
nothing calls this directly
no test coverage detected