MCPcopy Create free account
hub / github.com/DFHack/dfhack / lockGrids

Function lockGrids

plugins/rendermax/rendermax.cpp:100–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98 current_mode=newMode;
99}
100static void lockGrids()
101{
102 if(current_mode!=MODE_LUA)
103 return ;
104 renderer_lua* r=reinterpret_cast<renderer_lua*>(enabler->renderer);
105 r->dataMutex.lock();
106}
107static void unlockGrids()
108{
109 if(current_mode!=MODE_LUA)

Callers 1

rendermaxFunction · 0.85

Calls 1

lockMethod · 0.45

Tested by

no test coverage detected