fiberpool is a C++ library based on Boost.Fibers, providing a convenient wrapper for managing asynchronous tasks within applications, optimizing the execution of time-consuming and fragmented tasks across multiple threads.
- C++17 compiler
- Boost 1.60 or later
To use fiberpool in your project, follow these steps:
- Clone the Repository:
git clone https://github.com/ZeroKwok/fiberpool.git
- Build and Install:
cd fiberpool
mkdir build && cd build
cmake ..
cmake --build .
cmake --install .
- Link to Your Project
Once installed, you can link fiberpool to your CMake project by adding the following lines to your CMakeLists.txt:
find_package(fiberpool REQUIRED)
target_link_libraries(your_project_name PRIVATE fiberpool)
- Include Headers
In your C++ code, include fiberpool headers as follows:
#include <fiber_pool.hpp>
- Enjoy Using fiberpool!
For more detailed usage and examples, refer to the example directory.