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