void signal() { boost::fibers::mutex::scoped_lock l(m); flag=true; cond.notify_all(); }
void notify_all_fn( boost::fibers::condition & cond) { cond.notify_all(); }