MCPcopy Create free account
hub / github.com/cginternals/globjects / isCurrentContext

Method isCurrentContext

source/globjects/source/registry/Registry.cpp:72–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72bool Registry::isCurrentContext(glbinding::ContextHandle contextId)
73{
74 std::lock_guard<std::recursive_mutex> lock(g_mutex);
75
76 const auto it = s_registries.find(contextId);
77 const auto result = it != s_registries.end() && it->second == t_currentRegistry;
78
79 return result;
80}
81
82void Registry::deregisterContext(const glbinding::ContextHandle contextId)
83{

Callers

nothing calls this directly

Calls 1

endMethod · 0.45

Tested by

no test coverage detected