MCPcopy Create free account
hub / github.com/TelegramMessenger/tgcalls / ThreadsImpl

Method ThreadsImpl

tgcalls/StaticThreads.cpp:61–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59 using Thread = std::unique_ptr<rtc::Thread>;
60public:
61 explicit ThreadsImpl(size_t i) {
62 auto suffix = i == 0 ? "" : "#" + std::to_string(i);
63 media_ = create("tgc-media" + suffix);
64 worker_ = create("tgc-work" + suffix);
65 network_ = create_network("tgc-net" + suffix);
66
67 media_->AllowInvokesToThread(worker_.get());
68 media_->AllowInvokesToThread(network_.get());
69 worker_->AllowInvokesToThread(network_.get());
70
71 //network_->DisallowAllInvokes();
72 //worker_->DisallowAllInvokes();
73 //worker_->AllowInvokesToThread(network_.get());
74 }
75
76 rtc::Thread *getNetworkThread() override {
77 return network_.get();

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected