mirror of
https://github.com/QuantumLeaps/qpcpp.git
synced 2025-01-28 06:02:56 +08:00
34cdcc7929
major release 7.0.0 release candidate 1
13 lines
342 B
C++
13 lines
342 B
C++
Q_State_DEF(Table, initial) {
|
|
|
|
subscribe(HUNGRY_SIG); // <--- subscribe to HUNGRY
|
|
subscribe(DONE_SIG); // <--- subscribe to DONE
|
|
subscribe(TERMINATE_SIG); // <--- subscribe to TERMINATE
|
|
|
|
for (std::uint8_t n = 0U; n < N; ++n) {
|
|
m_fork_[n] = FREE;
|
|
m_isHungry_[n] = 0U;
|
|
}
|
|
return tran(&serving);
|
|
}
|