X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2b4f2809ce5c54961bcae43131fcab00dd161a3d..62534c29d0fe83dbec6b7e7642d2ecbe100f3d7b:/include/simgrid/forward.h diff --git a/include/simgrid/forward.h b/include/simgrid/forward.h index 38d662dfb2..fd0ab86093 100644 --- a/include/simgrid/forward.h +++ b/include/simgrid/forward.h @@ -24,6 +24,10 @@ XBT_PUBLIC void intrusive_ptr_release(Actor* actor); XBT_PUBLIC void intrusive_ptr_add_ref(Actor* actor); class Barrier; +/** Smart pointer to a simgrid::s4u::Barrier */ +typedef boost::intrusive_ptr BarrierPtr; +XBT_PUBLIC void intrusive_ptr_release(Barrier* m); +XBT_PUBLIC void intrusive_ptr_add_ref(Barrier* m); class Comm; /** Smart pointer to a simgrid::s4u::Comm */ @@ -70,6 +74,13 @@ typedef boost::intrusive_ptr MutexPtr; class NetZone; class VirtualMachine; class File; + +class Semaphore; +/** Smart pointer to a simgrid::s4u::Semaphore */ +typedef boost::intrusive_ptr SemaphorePtr; +XBT_PUBLIC void intrusive_ptr_release(Semaphore* m); +XBT_PUBLIC void intrusive_ptr_add_ref(Semaphore* m); + class Storage; } // namespace s4u