C++20's jthread for C++11 and later in a single-file header-only library (WIP).
-
Updated
Nov 28, 2025 - C++
C++20's jthread for C++11 and later in a single-file header-only library (WIP).
C++ class for a joining and cooperative interruptible thread (created to become std::jthread)
分享一些代码
Efficient, flexible parallel task execution in C++ using std::jthread. ThreadPool simplifies thread management and offers priority-based task scheduling with Deque or PriorityQueue.
multi-threading related stuff
Parallel Computing and Distributed Computing with C++ threads, Python threads+asyncio+multiprocessing and Spark, and Cuda.
A lightweight RAII wrapper for std::thread that ensures automatic joining on destruction. A C++11/14/17 compatible alternative to C++20's std::jthread.
To associate your repository with the jthread topic, visit your repo's landing page and select "manage topics."