fiber
fiber copied to clipboard
userland threads
Hi, I am trying to compile with BOOST_FIBERS_NO_ATOMICS flag and getting compile errors like: /home/precitec/boost-build/boost_1_72_0/boost/fiber/context.hpp:395:25: error: request for member ‘fetch_add’ in ‘ctx->boost::fibers::context::use_count_’, which is of non-class type ‘std::size_t’ {aka ‘long...
I managed to reproduce the hang I got in #254 : ``` int main(int /*argc*/, const char * /*argv*/ []) { struct Item { int value{}; Item(int v = 0)...
Hi all, I noticed some of our tests crashing inside Boost.Fiber. More specific, the constructor of `std::random_device` throws an `std::runtime_error` with the description `random_device: rdseed failed` which is not handled....
I am writing a test to test shared_work scheduler with buffered_channel based on work_sharing.cpp example. In the test, I have a thread pool with 8 threads, all of them are...
In the file `examples/asio/yield.hpp` there is the line ``` thread_local yield_t yield{}; ``` So if this yield.hpp included in two different cpp files then there will be link issue. If...
While investigating another case just found this assert fired. Boost fiber from develop branch. The toy example to reproduce (some time it needs several runs): ```cpp #include #include #include #include...
Situation: 0. I use boost 1.69 1. Have one thread pool (TP) with shared_work algo started on it. 2. fibers running in TP is waiting on cond_var: ```cpp boost::fibers::mutex _mtx;...
I am developing a library which use boost fiber. There I used this_fiber::get_id(), But as soon as I specify this statement I am not able to close the library. Same...
Hi, I am using the Boost.Fiber Boost.Asio coupling via the `boost::fibers::asio::round_robin` scheduler, and I am trying to relaunch an asio `io_service`, that has previously been stopped. The problem is, that...
## Description main fiber's fiber_specific_ptr is not correctly cleaned. ## Test Code: ```c++ #include #include #include void clean_fss_int(int* p) { printf("clean int = %d\n", *p); } static boost::fibers::fiber_specific_ptr fs0(clean_fss_int); static...