This commit is contained in:
levlam 2021-12-01 15:20:33 +03:00
parent 923dd11fd8
commit aa9f63acfe

View File

@ -35,12 +35,14 @@ struct TestActor final : public td::Actor {
td::int32 TestActor::actor_count_; td::int32 TestActor::actor_count_;
namespace td {
template <> template <>
class td::ActorTraits<TestActor> { class ActorTraits<TestActor> {
public: public:
static constexpr bool need_context = false; static constexpr bool need_context = false;
static constexpr bool need_start_up = true; static constexpr bool need_start_up = true;
}; };
} // namespace td
class CreateActorBench final : public td::Benchmark { class CreateActorBench final : public td::Benchmark {
td::ConcurrentScheduler scheduler_; td::ConcurrentScheduler scheduler_;