MCPcopy Create free account
hub / github.com/RenderKit/embree / lockThread

Function lockThread

kernels/subdiv/tessellation_cache.h:164–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162
163
164 __forceinline size_t lockThread (ThreadWorkState *const t_state, const ssize_t plus=1) { return t_state->counter.fetch_add(plus); }
165 __forceinline size_t unlockThread(ThreadWorkState *const t_state, const ssize_t plus=-1) { assert(isLocked(t_state)); return t_state->counter.fetch_add(plus); }
166
167 __forceinline bool isLocked(ThreadWorkState *const t_state) { return t_state->counter.load() != 0; }

Callers 3

allocNextSegmentMethod · 0.85
resetMethod · 0.85
reallocMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected