MCPcopy Create free account
hub / github.com/pybind/pybind11 / set

Method set

tests/test_scoped_critical_section.cpp:35–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 explicit BoolWrapper(bool value) : value_{value} {}
34 bool get() const { return value_.load(std::memory_order_acquire); }
35 void set(bool value) { value_.store(value, std::memory_order_release); }
36
37private:
38 std::atomic_bool value_{false};

Calls

no outgoing calls

Tested by

no test coverage detected