bool ready() { // Flush pending reference counting operations on the target locality. agas::garbage_collect(locality_); return flag_.ready(); }
bool ready( Duration const& d ) { // Flush pending reference counting operations on the target locality. agas::garbage_collect(locality_); // Schedule a wakeup. threads::set_thread_state(threads::get_self_id(), d, threads::pending); // Suspend this pxthread. threads::get_self().yield(threads::suspended); return flag_.ready(); }