Registry / async / josuttis-jthread

josuttis-jthread

JSON →
library2020-07-21vcpkgunverified

C++ class for a joining and cooperative interruptible thread (std::jthread) with stop_token helper

vcpkg install josuttis-jthread
INSTALL
IMPORT
SIG · JOSUTTIS-JTHREAD
J
josuttis-jthread
asynccppv2020-07-21
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.

jthread.hpp
#include <jthread.hpp>

Creates a jthread that stops on request

#include <jthread.hpp> #include <iostream> int main() { std::jthread t([](std::stop_token st) { while (!st.stop_requested()) { std::cout << "Working..." << std::endl; } }); t.request_stop(); return 0; }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2020-07-21latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
28 hits · last 30 days
node
26
OpenAI (training)
1
Resources

No resource links recorded.

josuttis-jthread — pip install josuttis-jthread · libregistry