MCPcopy Create free account
hub / github.com/crownengine/crown / LIKELY

Function LIKELY

3rdparty/openal/al/buffer.cpp:717–723  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

715{
716 ContextRef context{GetContextRef()};
717 if LIKELY(context)
718 {
719 ALCdevice *device{context->mDevice.get()};
720 std::lock_guard<std::mutex> _{device->BufferLock};
721 if(!buffer || LookupBuffer(device, buffer))
722 return AL_TRUE;
723 }
724 return AL_FALSE;
725}
726END_API_FUNC

Callers 1

buffer.cppFile · 0.70

Calls 2

LookupBufferFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected