MCPcopy Create free account
hub / github.com/carbonengine/trinity / Unlock

Method Unlock

trinityal/Tr2LockGuard.cpp:52–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52void Tr2LockGuard::Unlock()
53{
54 CCP_ASSERT( m_memory );
55 if( !m_memory )
56 {
57 CCP_LOGWARN( "TrinityAL: guarded lock buffer memory is NULL when unlocking" );
58 return;
59 }
60 CCP_ASSERT( m_originalMemory );
61 if( !m_originalMemory )
62 {
63 CCP_LOGWARN( "TrinityAL: guarded lock original buffer memory is NULL when unlocking" );
64 return;
65 }
66 memcpy( m_originalMemory, m_memory, m_size );
67 CCPFreeWithGuard( m_memory );
68 m_memory = nullptr;
69 m_originalMemory = nullptr;
70}
71
72void* Tr2LockGuard::GetMemory()
73{

Callers 15

FillAndSetConstantsFunction · 0.45
RenderFogMethod · 0.45
BroadcastMethod · 0.45
UpdateBufferMethod · 0.45
GatherSpritesMethod · 0.45
SetGrannyResourceMethod · 0.45
InitializeMethod · 0.45
PerformPassMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected