MCPcopy Create free account
hub / github.com/MaskRay/ccls / MultiQueueLock

Method MultiQueueLock

src/threaded_queue.hh:30–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28
29template <typename... Queue> struct MultiQueueLock {
30 MultiQueueLock(Queue... lockable) : tuple_{lockable...} { lock(); }
31 ~MultiQueueLock() { unlock(); }
32 void lock() { lock_impl(typename std::index_sequence_for<Queue...>{}); }
33 void unlock() { unlock_impl(typename std::index_sequence_for<Queue...>{}); }

Callers

nothing calls this directly

Calls 1

lockFunction · 0.85

Tested by

no test coverage detected