aboutsummaryrefslogtreecommitdiffhomepage
path: root/tdactor/td
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2025-05-07 18:29:47 +0300
committerlevlam <levlam@telegram.org>2025-05-07 18:29:47 +0300
commit059e4c631cd9bfcc190ba50d957be17503d2242c (patch)
treec2922ce73211eed4396f3e7ed380218e659a1ca8 /tdactor/td
parent41288d59a00a6f1dc4f27ebef3f56db723766cf5 (diff)
Minor improvements.
Diffstat (limited to 'tdactor/td')
-rw-r--r--tdactor/td/actor/impl/Scheduler.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/tdactor/td/actor/impl/Scheduler.cpp b/tdactor/td/actor/impl/Scheduler.cpp
index c7bb795d2..0fc4d3545 100644
--- a/tdactor/td/actor/impl/Scheduler.cpp
+++ b/tdactor/td/actor/impl/Scheduler.cpp
@@ -544,22 +544,22 @@ void Scheduler::run_mailbox() {
}
VLOG(actor) << "Run mailbox : finish " << actor_count_;
- //Useful for debug, but O(ActorsCount) check
-
- //int cnt = 0;
- //for (ListNode *end = &pending_actors_list_, *it = pending_actors_list_.next; it != end; it = it->next) {
- //cnt++;
- //auto actor_info = ActorInfo::from_list_node(it);
- //LOG(ERROR) << *actor_info;
- //CHECK(actor_info->mailbox_.empty());
- //CHECK(!actor_info->is_running());
- //}
- //for (ListNode *end = &ready_actors_list_, *it = ready_actors_list_.next; it != end; it = it->next) {
- //auto actor_info = ActorInfo::from_list_node(it);
- //LOG(ERROR) << *actor_info;
- //cnt++;
- //}
- //LOG_CHECK(cnt == actor_count_) << cnt << " vs " << actor_count_;
+ // Useful for debug, but O(ActorCount) check
+
+ // int cnt = 0;
+ // for (ListNode *end = &pending_actors_list_, *it = pending_actors_list_.next; it != end; it = it->next) {
+ // cnt++;
+ // auto actor_info = ActorInfo::from_list_node(it);
+ // LOG(ERROR) << *actor_info;
+ // CHECK(actor_info->mailbox_.empty());
+ // CHECK(!actor_info->is_running());
+ // }
+ // for (ListNode *end = &ready_actors_list_, *it = ready_actors_list_.next; it != end; it = it->next) {
+ // auto actor_info = ActorInfo::from_list_node(it);
+ // LOG(ERROR) << *actor_info;
+ // cnt++;
+ // }
+ // LOG_CHECK(cnt == actor_count_) << cnt << " vs " << actor_count_;
}
Timestamp Scheduler::run_timeout() {