Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
present
Method · 0.80
flip
Method · 0.80
getEvent
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected