Skip to content

fborges22/BlueThread

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BlueThread

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.


✨ Features

  • 🧵 Run any function or callable object in a separate thread
  • 🛑 Interrupt thread execution safely
  • 🔁 set() and run() interface for flexible scheduling
  • 🔮 Supports std::future return values from threaded functions
  • 🧪 Integrated Google Test support
  • 🧰 CMake-based build system

📦 Build Instructions

✅ Requirements

  • C++20 compatible compiler
  • CMake ≥ 3.14
  • Git (for cloning submodules or fetching dependencies)

🛠 Build and Test

# 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

About

C++ Library for working with Paralellism with any function

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published