Do not allow wait_generation to became zero to avoid false positives.
GitOrigin-RevId: 8407cb694003ce92a359c769c934c75726c96b9a
This commit is contained in:
parent
cd7a9d7b3a
commit
a12de1b5b0
@ -219,7 +219,7 @@ class Scheduler {
|
||||
bool has_guard_ = false;
|
||||
bool close_flag_ = false;
|
||||
|
||||
uint32 wait_generation_ = 0;
|
||||
uint32 wait_generation_ = 1;
|
||||
int32 sched_id_ = 0;
|
||||
int32 sched_n_ = 0;
|
||||
std::shared_ptr<MpscPollableQueue<EventFull>> inbound_queue_;
|
||||
|
@ -190,7 +190,7 @@ inline void Scheduler::before_tail_send(const ActorId<> &actor_id) {
|
||||
}
|
||||
|
||||
inline void Scheduler::inc_wait_generation() {
|
||||
wait_generation_++;
|
||||
wait_generation_ += 2;
|
||||
}
|
||||
|
||||
template <ActorSendType send_type, class RunFuncT, class EventFuncT>
|
||||
|
Loading…
Reference in New Issue
Block a user