X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/04ac83f8e0edcc8dc577c4d28c8c419bc46abd5b..ac080087b39ef79ff497d3992ff04b3e20fe40b2:/src/s4u/s4u_Io.cpp diff --git a/src/s4u/s4u_Io.cpp b/src/s4u/s4u_Io.cpp index 8f1f764685..30ebf50f7d 100644 --- a/src/s4u/s4u_Io.cpp +++ b/src/s4u/s4u_Io.cpp @@ -96,17 +96,5 @@ sg_size_t Io::get_performed_ioops() [this]() { return boost::static_pointer_cast(pimpl_)->get_performed_ioops(); }); } -void intrusive_ptr_release(simgrid::s4u::Io* i) -{ - if (i->refcount_.fetch_sub(1, std::memory_order_release) == 1) { - std::atomic_thread_fence(std::memory_order_acquire); - delete i; - } -} - -void intrusive_ptr_add_ref(simgrid::s4u::Io* i) -{ - i->refcount_.fetch_add(1, std::memory_order_relaxed); -} } // namespace s4u } // namespace simgrid