Skip to content

基于boost.fibers封装的纤程池,主要用于管理应用程序中的异步任务,优化耗时任务以及碎片任务的多线程执行。

License

Notifications You must be signed in to change notification settings

ZeroKwok/fiberpool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fiberpool

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.

Prerequisites

  • C++17 compiler
  • Boost 1.60 or later

Installation

To use fiberpool in your project, follow these steps:

  1. Clone the Repository:
git clone https://github.com/ZeroKwok/fiberpool.git
  1. Build and Install:
cd fiberpool
mkdir build && cd build
cmake ..
cmake --build .
cmake --install .
  1. 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)
  1. Include Headers

In your C++ code, include fiberpool headers as follows:

#include <fiber_pool.hpp>
  1. Enjoy Using fiberpool!

Detail

For more detailed usage and examples, refer to the example directory.

About

基于boost.fibers封装的纤程池,主要用于管理应用程序中的异步任务,优化耗时任务以及碎片任务的多线程执行。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •