How can i stop(interrupt) a fiber using c++ boost?
for example
fiber.stop()
How can i execute fiber join(time) using c+ boost(the default api dont accept a maximun time for waiting) ? for example:
fiber.join(1000);
it is possible to suspend a fiber , serialize it on disk , then reload it in the system?
boost.fiber is modeled after std::threads's API - no interrupt function and not timed join.
You can't serialize a fiber because this would mean serializing the stack of the fiber which is not possible ... at least not without compiler support.
Stack serilization is not recommended because the compiler would have to take care about pointers to objects allocated on the stack, e.g. the objects must be re-allocated at the same addresses or the pointer must be re-written after deserializing the fiber (reloading).
RAII violations will be easily possible etc ...