Registry / utility / libguarded

libguarded

JSON →
library2.0.1vcpkgunverified

Header-only library for multithreaded programming.

vcpkg install libguarded
INSTALL
IMPORT
SIG · LIBGUARDED
L
libguarded
utilitycppv2.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

libguarded/guarded.hpp
#include <libguarded/guarded.hpp>

Use a guarded<int> for thread-safe access

#include <libguarded/guarded.hpp> #include <iostream> #include <thread> int main() { libguarded::guarded<int> value(0); std::thread t([&]() { *value = 42; }); t.join(); std::cout << *value << std::endl; return 0; }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.0.1latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources

No resource links recorded.

libguarded — pip install libguarded · libregistry