#include <smx_synchro_private.h>
◆ Mutex() [1/2]
simgrid::simix::Mutex::Mutex |
( |
| ) |
|
◆ ~Mutex()
simgrid::simix::Mutex::~Mutex |
( |
| ) |
|
◆ Mutex() [2/2]
simgrid::simix::Mutex::Mutex |
( |
Mutex const & |
| ) |
|
|
delete |
◆ operator=()
Mutex& simgrid::simix::Mutex::operator= |
( |
Mutex const & |
| ) |
|
|
delete |
◆ lock()
◆ try_lock()
bool simgrid::simix::Mutex::try_lock |
( |
smx_actor_t |
issuer | ) |
|
Tries to lock the mutex for a process.
- Parameters
-
issuer | the process that tries to acquire the mutex |
- Returns
- whether we managed to lock the mutex
◆ unlock()
Unlock a mutex for a process.
Unlocks the mutex and gives it to a process waiting for it. If the unlocker is not the owner of the mutex nothing happens. If there are no process waiting, it sets the mutex as free.
◆ mutex()
◆ intrusive_ptr_add_ref
◆ intrusive_ptr_release
◆ locked
bool simgrid::simix::Mutex::locked = false |
◆ owner
◆ sleeping
xbt_swag_t simgrid::simix::Mutex::sleeping = nullptr |
The documentation for this class was generated from the following files: