| 503 | |
| 504 | template <typename T> |
| 505 | class Process : public virtual ProcessBase { |
| 506 | public: |
| 507 | ~Process() override {} |
| 508 | |
| 509 | /** |
| 510 | * Returns the `PID` of the process. |
| 511 | * |
| 512 | * Valid even before calling spawn. |
| 513 | */ |
| 514 | PID<T> self() const { return PID<T>(static_cast<const T*>(this)); } |
| 515 | |
| 516 | protected: |
| 517 | // Useful typedefs for dispatch/delay/defer to self()/this. |
| 518 | typedef T Self; |
| 519 | typedef T This; |
| 520 | }; |
| 521 | |
| 522 | |
| 523 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected