jthread

C++ library providing easy-to-use thread management abstraction

brewmacoslinux
Try with needOr install directly
Source

About

C++ class to make use of threads easy

Commands

jthread

Examples

Include jthread header in C++ project for thread management$ g++ -std=c++20 -I$(brew --prefix jthread)/include myprogram.cpp -o myprogram
Link against jthread library when compiling C++ code$ g++ -std=c++20 myprogram.cpp -L$(brew --prefix jthread)/lib -ljthread -o myprogram
Check installed jthread version and location$ brew info jthread