Inline Scheduler::do_custom_event.
GitOrigin-RevId: 3bd169ee05552c173e32276891dc659614a836cf
This commit is contained in:
parent
340c98772d
commit
2311809493
@ -159,7 +159,6 @@ class Scheduler {
|
||||
};
|
||||
friend class ServiceActor;
|
||||
|
||||
void do_custom_event(ActorInfo *actor, CustomEvent &event);
|
||||
void do_event(ActorInfo *actor, Event &&event);
|
||||
|
||||
void enter_actor(ActorInfo *actor_info);
|
||||
|
@ -278,7 +278,7 @@ void Scheduler::do_event(ActorInfo *actor_info, Event &&event) {
|
||||
actor->raw_event(event.data);
|
||||
break;
|
||||
case Event::Type::Custom:
|
||||
do_custom_event(actor_info, *event.data.custom_event);
|
||||
event.data.custom_event->run(actor);
|
||||
break;
|
||||
case Event::Type::NoType:
|
||||
default:
|
||||
|
@ -151,10 +151,6 @@ inline void Scheduler::destroy_actor(ActorInfo *actor_info) {
|
||||
CHECK(actor_count_ >= 0);
|
||||
}
|
||||
|
||||
inline void Scheduler::do_custom_event(ActorInfo *actor_info, CustomEvent &event) {
|
||||
event.run(actor_info->get_actor_unsafe());
|
||||
}
|
||||
|
||||
template <class RunFuncT, class EventFuncT>
|
||||
void Scheduler::flush_mailbox(ActorInfo *actor_info, const RunFuncT &run_func, const EventFuncT &event_func) {
|
||||
auto &mailbox = actor_info->mailbox_;
|
||||
|
Loading…
Reference in New Issue
Block a user