aboutsummaryrefslogtreecommitdiffhomepage
path: root/tdactor
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2023-03-27 18:08:06 +0300
committerlevlam <levlam@telegram.org>2023-03-27 18:08:06 +0300
commitee0922d23d1171ef751dfa283d86478f7e4d6442 (patch)
treea4c7bf2bcad1fc6b32d86c3de113df507c92e3bb /tdactor
parentf2a406690e5749352d2db7b0f96132767531b2c9 (diff)
Remove Scheduler::init().
Diffstat (limited to 'tdactor')
-rw-r--r--tdactor/td/actor/impl/Scheduler-decl.h4
-rw-r--r--tdactor/td/actor/impl/Scheduler.h4
2 files changed, 2 insertions, 6 deletions
diff --git a/tdactor/td/actor/impl/Scheduler-decl.h b/tdactor/td/actor/impl/Scheduler-decl.h
index 8321f38a1..723764245 100644
--- a/tdactor/td/actor/impl/Scheduler-decl.h
+++ b/tdactor/td/actor/impl/Scheduler-decl.h
@@ -78,9 +78,7 @@ class Scheduler {
Scheduler &operator=(Scheduler &&) = delete;
~Scheduler();
- void init();
void init(int32 id, std::vector<std::shared_ptr<MpscPollableQueue<EventFull>>> outbound, Callback *callback);
- void clear();
int32 sched_id() const;
int32 sched_count() const;
@@ -172,6 +170,8 @@ class Scheduler {
};
friend class ServiceActor;
+ void clear();
+
void do_event(ActorInfo *actor, Event &&event);
void enter_actor(ActorInfo *actor_info);
diff --git a/tdactor/td/actor/impl/Scheduler.h b/tdactor/td/actor/impl/Scheduler.h
index fb9e49891..b1d3fbfa4 100644
--- a/tdactor/td/actor/impl/Scheduler.h
+++ b/tdactor/td/actor/impl/Scheduler.h
@@ -58,10 +58,6 @@ inline SchedulerGuard Scheduler::get_const_guard() {
return SchedulerGuard(this, false);
}
-inline void Scheduler::init() {
- init(0, {}, nullptr);
-}
-
inline int32 Scheduler::sched_id() const {
return sched_id_;
}