| 70 | } |
| 71 | |
| 72 | bool 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 | |
| 82 | void Registry::deregisterContext(const glbinding::ContextHandle contextId) |
| 83 | { |