MCPcopy Create free account
hub / github.com/GrapheneCt/NetStream / Exist

Method Exist

NetStream/source/tex_pool.cpp:227–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227bool TexPool::Exist(IDParam const& id)
228{
229 m_storMtx->Lock();
230 bool ret = (m_stor[id.GetIDHash()].get() != NULL);
231 m_storMtx->Unlock();
232 return ret;
233}
234
235intrusive_ptr<graph::Surface> TexPool::Get(IDParam const& id)
236{

Callers 2

CreateListItemMethod · 0.80
CreateListItemMethod · 0.80

Calls 2

LockMethod · 0.80
UnlockMethod · 0.80

Tested by

no test coverage detected