MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / remove

Method remove

server/Hash.h:97–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95 }
96
97 void remove(HashKeyType1 key1, HashKeyType2 key2, bool useRef = false)
98 {
99 HashEntry *entry = NULL;
100 util::CriticalSection::SafeLock l(mutex);
101
102 if((entry = findEntry(key1, key2)) != NULL)
103 {
104 if(useRef && entry->refCount > 0) entry->refCount--;
105 if(!useRef || entry->refCount <= 0) killEntry(entry);
106 }
107 }
108
109 int getCount(void) { return count; }
110

Callers 13

destroyContextFunction · 0.45
destroyPbufferFunction · 0.45
DeleteWindowFunction · 0.45
XSetEventQueueOwnerFunction · 0.45
glXDestroyContextFunction · 0.45
glXDestroyPbufferFunction · 0.45
glXDestroyGLXPixmapFunction · 0.45
glXDestroyPixmapFunction · 0.45
glXDestroyWindowFunction · 0.45
eglDestroySurfaceFunction · 0.45
XCloseDisplayFunction · 0.45
DeleteWindowFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected