MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / isGfxThread

Method isGfxThread

src/she/sdl2/she.cpp:656–658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

654 std::atomic<bool> sleeping{false};
655
656 bool isGfxThread() override {
657 return std::this_thread::get_id() == gfxThreadId;
658 }
659
660 bool isMainThread() override {
661 return std::this_thread::get_id() == mainThreadId;

Callers 3

presentMethod · 0.80
flipMethod · 0.80
getEventFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected