MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / GetHandle

Method GetHandle

Source/Sound/threaded_sound_wrapper.cpp:252–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252real_sound_handle ThreadedSoundDataBridge::GetHandle(wrapper_sound_handle wsh) {
253 real_sound_handle rsh = 0;
254 mutex.lock();
255 if (handle_map.find(wsh) != handle_map.end()) {
256 rsh = handle_map[wsh];
257 }
258 mutex.unlock();
259 return rsh;
260}
261
262bool ThreadedSoundDataBridge::IsHandleValid(wrapper_sound_handle wsh) {
263 bool out;

Callers 1

GetRealHandleMethod · 0.80

Calls 4

lockMethod · 0.45
findMethod · 0.45
endMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected