/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
* Instead, you should use the present class, that offers a very similar interface.
*
* As for any S4U object, Semaphores are using the @ref s4u_raii "RAII idiom" for memory management.
* Instead, you should use the present class, that offers a very similar interface.
*
* As for any S4U object, Semaphores are using the @ref s4u_raii "RAII idiom" for memory management.
- * Use createSemaphore() to get a ::SemaphorePtr to a newly created semaphore
- * and only manipulate ::SemaphorePtr.
+ * Use #create() to get a simgrid::s4u::SemaphorePtr to a newly created semaphore
+ * and only manipulate simgrid::s4u::SemaphorePtr.
friend void intrusive_ptr_add_ref(Semaphore* sem);
friend void intrusive_ptr_release(Semaphore* sem);
public:
friend void intrusive_ptr_add_ref(Semaphore* sem);
friend void intrusive_ptr_release(Semaphore* sem);
public:
// No copy:
/** You cannot create a new semaphore by copying an existing one. Use SemaphorePtr instead */
Semaphore(Semaphore const&) = delete;
// No copy:
/** You cannot create a new semaphore by copying an existing one. Use SemaphorePtr instead */
Semaphore(Semaphore const&) = delete;