|
| | XBT_LOG_NEW_DEFAULT_SUBCATEGORY (simix_synchro, simix,"SIMIX Synchronization (mutex, semaphores and conditions)") |
| |
| static smx_synchro_t | SIMIX_synchro_wait (sg_host_t smx_host, double timeout) |
| |
| static void | SIMIX_synchro_finish (smx_synchro_t synchro) |
| |
| static void | _SIMIX_cond_wait (smx_cond_t cond, smx_mutex_t mutex, double timeout, smx_process_t issuer, smx_simcall_t simcall) |
| |
| static void | _SIMIX_sem_wait (smx_sem_t sem, double timeout, smx_process_t issuer, smx_simcall_t simcall) |
| |
| void | SIMIX_synchro_stop_waiting (smx_process_t process, smx_simcall_t simcall) |
| |
| void | SIMIX_synchro_destroy (smx_synchro_t synchro) |
| |
| void | SIMIX_post_synchro (smx_synchro_t synchro) |
| |
| smx_mutex_t | simcall_HANDLER_mutex_init (smx_simcall_t simcall) |
| |
| smx_mutex_t | SIMIX_mutex_init (void) |
| | Initialize a mutex. More...
|
| |
| void | simcall_HANDLER_mutex_lock (smx_simcall_t simcall, smx_mutex_t mutex) |
| | Handles a mutex lock simcall. More...
|
| |
| int | simcall_HANDLER_mutex_trylock (smx_simcall_t simcall, smx_mutex_t mutex) |
| |
| int | SIMIX_mutex_trylock (smx_mutex_t mutex, smx_process_t issuer) |
| | Tries to lock a mutex. More...
|
| |
| void | simcall_HANDLER_mutex_unlock (smx_simcall_t simcall, smx_mutex_t mutex) |
| |
| void | SIMIX_mutex_unlock (smx_mutex_t mutex, smx_process_t issuer) |
| | Unlocks a mutex. More...
|
| |
| void | SIMIX_mutex_destroy (smx_mutex_t mutex) |
| | Destroys a mutex. More...
|
| |
| smx_cond_t | SIMIX_cond_init (void) |
| | Initialize a condition. More...
|
| |
| void | simcall_HANDLER_cond_wait (smx_simcall_t simcall, smx_cond_t cond, smx_mutex_t mutex) |
| | Handle a condition waiting simcall without timeouts. More...
|
| |
| void | simcall_HANDLER_cond_wait_timeout (smx_simcall_t simcall, smx_cond_t cond, smx_mutex_t mutex, double timeout) |
| | Handle a condition waiting simcall with timeouts. More...
|
| |
| void | SIMIX_cond_signal (smx_cond_t cond) |
| | Signalizes a condition. More...
|
| |
| void | SIMIX_cond_broadcast (smx_cond_t cond) |
| | Broadcasts a condition. More...
|
| |
| void | SIMIX_cond_destroy (smx_cond_t cond) |
| | Destroys a condition. More...
|
| |
| smx_sem_t | SIMIX_sem_init (unsigned int value) |
| | Initialize a semaphore. More...
|
| |
| void | SIMIX_sem_destroy (smx_sem_t sem) |
| | Destroys a semaphore. More...
|
| |
| void | simcall_HANDLER_sem_release (smx_simcall_t simcall, smx_sem_t sem) |
| |
| void | SIMIX_sem_release (smx_sem_t sem) |
| | release the semaphore More...
|
| |
| int | SIMIX_sem_would_block (smx_sem_t sem) |
| | Returns true if acquiring this semaphore would block. More...
|
| |
| int | simcall_HANDLER_sem_get_capacity (smx_simcall_t simcall, smx_sem_t sem) |
| |
| int | SIMIX_sem_get_capacity (smx_sem_t sem) |
| | Returns the current capacity of the semaphore. More...
|
| |
| void | simcall_HANDLER_sem_acquire (smx_simcall_t simcall, smx_sem_t sem) |
| | Handles a sem acquire simcall without timeout. More...
|
| |
| void | simcall_HANDLER_sem_acquire_timeout (smx_simcall_t simcall, smx_sem_t sem, double timeout) |
| | Handles a sem acquire simcall with timeout. More...
|
| |
| int | simcall_HANDLER_sem_would_block (smx_simcall_t simcall, smx_sem_t sem) |
| |