ZaStoGram_desktop/Telegram/SourceFiles/tgw/tgw_render_thread.h
John Preston e610403c74 Run widget renderers on a thread of their own
Task: 2026/11/14/run-the-widget-renderer-on-a-thread-of-its-own
2026-11-19 23:17:09 +04:00

18 lines
511 B
C++

/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#pragma once
namespace Tgw {
void PostToRenderThread(Fn<void()> task);
[[nodiscard]] bool RenderThreadStarted();
[[nodiscard]] bool OnRenderThread();
[[nodiscard]] bool RenderThreadBarrier(Fn<void()> done);
void FinishRenderThread(Fn<void()> last);
} // namespace Tgw