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

Method GetHandleData

Source/Sound/threaded_sound_wrapper.cpp:283–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281}
282
283SoundInstanceDataCopy ThreadedSoundDataBridge::GetHandleData(wrapper_sound_handle wsh) {
284 SoundInstanceDataCopy v;
285 mutex.lock();
286 if (data_copy_map.find(wsh) != data_copy_map.end()) {
287 v = data_copy_map[wsh];
288 }
289 mutex.unlock();
290 return v;
291}
292
293// void ThreadedSoundDataBridge::SetHandleData( wrapper_sound_handle wsh, const SoundInstanceDataCopy &sidc ) {
294// mutex.lock();

Callers 4

GetPositionMethod · 0.80
GetNameMethod · 0.80
GetTypeMethod · 0.80
GetIDMethod · 0.80

Calls 4

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

Tested by

no test coverage detected