BlueThread is a C++ class that enables asynchronous execution of arbitrary functions in a separate thread. It supports thread interruption, deferred execution, and future-based result retrieval. This project is built as a static library and includes unit tests using the Google Test framework.
- ๐งต Run any function or callable object in a separate thread
- ๐ Interrupt thread execution safely
- ๐
set()andrun()interface for flexible scheduling - ๐ฎ Supports
std::futurereturn values from threaded functions - ๐งช Integrated Google Test support
- ๐งฐ CMake-based build system
- C++20 compatible compiler
- CMake โฅ 3.14
- Git (for cloning submodules or fetching dependencies)
# Clone the repository
git clone https://github.com/yourusername/BlueThread.git
cd BlueThread
# Create build directory
mkdir build && cd build
# Generate build system
cmake ..
# Build the project
make
# Run tests
ctest