MCPcopy Create free account
hub / github.com/OpenKinect/libfreenect2 / free

Method free

src/allocator.cpp:93–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91 }
92
93 void free(Buffer *b)
94 {
95 lock_guard guard(used_lock);
96 if (b == buffers[0]) {
97 used[0] = false;
98 available_cond.notify_one();
99 } else if (b == buffers[1]) {
100 used[1] = false;
101 available_cond.notify_one();
102 }
103 }
104
105 ~PoolAllocatorImpl()
106 {

Callers

nothing calls this directly

Calls 1

notify_oneMethod · 0.45

Tested by

no test coverage detected