MCPcopy Create free account
hub / github.com/Artikash/Textractor / Locker

Class Locker

include/common.h:63–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61 Synchronized(Args&&... args) : contents(std::forward<Args>(args)...) {}
62
63 struct Locker
64 {
65 T* operator->() { return &contents; }
66 std::unique_lock<M> lock;
67 T& contents;
68 };
69
70 Locker Acquire() { return { std::unique_lock(m), contents }; }
71 Locker operator->() { return Acquire(); }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected