]> rtime.felk.cvut.cz Git - frescor/fosa.git/blobdiff - src_marte/fosa_mutexes_and_condvars.c
Migrating FOSA trunk to d-ac2v2. Phase 1 moving FRSH-FOSA to FOSA
[frescor/fosa.git] / src_marte / fosa_mutexes_and_condvars.c
index 59acd210c2d6ba51b5cac20ef4e5f033bc0c0967..e8b4123f6cbf5f81409b4c316f2ea3c729149f8a 100644 (file)
@@ -95,7 +95,7 @@
  * notify it to the system console and then terminate the FRSH
  * implementation and dependant applications
  **/
-int fosa_mutex_init(frsh_mutex_t *mutex, int prioceiling)
+int fosa_mutex_init(fosa_mutex_t *mutex, int prioceiling)
 {
   pthread_mutexattr_t attr;
   int ret_value;
@@ -133,7 +133,7 @@ int fosa_mutex_init(frsh_mutex_t *mutex, int prioceiling)
  * notify it to the system console and then terminate the FRSH
  * implementation and dependant applications
  **/
-int fosa_mutex_destroy(frsh_mutex_t *mutex)
+int fosa_mutex_destroy(fosa_mutex_t *mutex)
 {
   return pthread_mutex_destroy(mutex);
 }
@@ -157,7 +157,7 @@ int fosa_mutex_destroy(frsh_mutex_t *mutex)
  * implementation and dependant applications
  **/
 int fosa_mutex_set_prioceiling
-   (frsh_mutex_t *mutex, int new_ceiling, int *old_ceiling)
+   (fosa_mutex_t *mutex, int new_ceiling, int *old_ceiling)
 {
   return pthread_mutex_setprioceiling(mutex,new_ceiling,old_ceiling);
 }
@@ -177,7 +177,7 @@ int fosa_mutex_set_prioceiling
  * notify it to the system console and then terminate the FRSH
  * implementation and dependant applications
  **/
-int fosa_mutex_get_prioceiling(const frsh_mutex_t *mutex, int *ceiling)
+int fosa_mutex_get_prioceiling(const fosa_mutex_t *mutex, int *ceiling)
 {
   return pthread_mutex_getprioceiling(mutex,ceiling);
 }
@@ -201,7 +201,7 @@ int fosa_mutex_get_prioceiling(const frsh_mutex_t *mutex, int *ceiling)
  * notify it to the system console and then terminate the FRSH
  * implementation and dependant applications
  **/
-int fosa_mutex_lock(frsh_mutex_t *mutex)
+int fosa_mutex_lock(fosa_mutex_t *mutex)
 {
   return pthread_mutex_lock(mutex);
 }
@@ -224,7 +224,7 @@ int fosa_mutex_lock(frsh_mutex_t *mutex)
  * implementation is allowed to notify it to the system console and
  * then terminate the FRSH implementation and dependant applications
  **/
-int fosa_mutex_trylock(frsh_mutex_t *mutex)
+int fosa_mutex_trylock(fosa_mutex_t *mutex)
 {
   return pthread_mutex_trylock(mutex);
 }
@@ -247,7 +247,7 @@ int fosa_mutex_trylock(frsh_mutex_t *mutex)
  * implementation is allowed to notify it to the system console and
  * then terminate the FRSH implementation and dependant applications
  **/
-int fosa_mutex_unlock(frsh_mutex_t *mutex)
+int fosa_mutex_unlock(fosa_mutex_t *mutex)
 {
   return pthread_mutex_unlock(mutex);
 }
@@ -366,7 +366,7 @@ int fosa_cond_broadcast(fosa_cond_t *cond)
  * notify it to the system console and then terminate the FRSH
  * implementation and dependant applications
  **/
-int fosa_cond_wait(fosa_cond_t *cond, frsh_mutex_t *mutex)
+int fosa_cond_wait(fosa_cond_t *cond, fosa_mutex_t *mutex)
 {
   return pthread_cond_wait(cond,mutex);
 }
@@ -390,7 +390,7 @@ int fosa_cond_wait(fosa_cond_t *cond, frsh_mutex_t *mutex)
  * implementation is allowed to notify it to the system console and
  * then terminate the FRSH implementation and dependant applications
  **/
-int fosa_cond_timedwait(fosa_cond_t *cond, frsh_mutex_t *mutex,
+int fosa_cond_timedwait(fosa_cond_t *cond, fosa_mutex_t *mutex,
       const struct timespec *abstime)
 {
   return pthread_cond_timedwait(cond,mutex,abstime);