X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/84a6e9061ba0240331de47f1de4207ac67875f77..431765cb8198579ac316fa0875b5c8988a501675:/src/simix/popping_bodies.cpp diff --git a/src/simix/popping_bodies.cpp b/src/simix/popping_bodies.cpp index 71639ffc67..c2c83cc915 100644 --- a/src/simix/popping_bodies.cpp +++ b/src/simix/popping_bodies.cpp @@ -225,6 +225,12 @@ inline static int simcall_BODY_mutex_trylock(smx_mutex_t mutex) { return simcall(SIMCALL_MUTEX_TRYLOCK, mutex); } +inline static void simcall_BODY_mutex_unlock(smx_mutex_t mutex) { + /* Go to that function to follow the code flow through the simcall barrier */ + if (0) simcall_HANDLER_mutex_unlock(&SIMIX_process_self()->simcall, mutex); + return simcall(SIMCALL_MUTEX_UNLOCK, mutex); + } + inline static smx_cond_t simcall_BODY_cond_init() { /* Go to that function to follow the code flow through the simcall barrier */ if (0) SIMIX_cond_init(); @@ -255,24 +261,6 @@ inline static void simcall_BODY_cond_broadcast(smx_cond_t cond) { return simcall(SIMCALL_COND_BROADCAST, cond); } -inline static smx_sem_t simcall_BODY_sem_init(unsigned int capacity) { - /* Go to that function to follow the code flow through the simcall barrier */ - if (0) SIMIX_sem_init(capacity); - return simcall(SIMCALL_SEM_INIT, capacity); - } - -inline static void simcall_BODY_sem_release(smx_sem_t sem) { - /* Go to that function to follow the code flow through the simcall barrier */ - if (0) simcall_HANDLER_sem_release(&SIMIX_process_self()->simcall, sem); - return simcall(SIMCALL_SEM_RELEASE, sem); - } - -inline static int simcall_BODY_sem_would_block(smx_sem_t sem) { - /* Go to that function to follow the code flow through the simcall barrier */ - if (0) simcall_HANDLER_sem_would_block(&SIMIX_process_self()->simcall, sem); - return simcall(SIMCALL_SEM_WOULD_BLOCK, sem); - } - inline static void simcall_BODY_sem_acquire(smx_sem_t sem) { /* Go to that function to follow the code flow through the simcall barrier */ if (0) simcall_HANDLER_sem_acquire(&SIMIX_process_self()->simcall, sem); @@ -285,12 +273,6 @@ inline static void simcall_BODY_sem_acquire_timeout(smx_sem_t sem, double timeou return simcall(SIMCALL_SEM_ACQUIRE_TIMEOUT, sem, timeout); } -inline static int simcall_BODY_sem_get_capacity(smx_sem_t sem) { - /* Go to that function to follow the code flow through the simcall barrier */ - if (0) simcall_HANDLER_sem_get_capacity(&SIMIX_process_self()->simcall, sem); - return simcall(SIMCALL_SEM_GET_CAPACITY, sem); - } - inline static sg_size_t simcall_BODY_file_read(surf_file_t fd, sg_size_t size) { /* Go to that function to follow the code flow through the simcall barrier */