// (frsh_thread_attr_t *attr,
// const void *param,
// size_t paramsize);
-inline int fosa_thread_attr_set_appsched_params (frsh_thread_attr_t *attr,
+extern inline int fosa_thread_attr_set_appsched_params (frsh_thread_attr_t *attr,
const void *param,
int paramsize){
- pthread_attr_setappschedparam(attr, param, paramsize);
+ return pthread_attr_setappschedparam(attr, param, paramsize);
}
/**
* fosa_thread_attr_get_appsched_params()
// (frsh_thread_id_t thread,
// const void *param,
// size_t paramsize);
-inline int fosa_ads_set_appschedparam (frsh_thread_id_t thread,
+extern inline int fosa_ads_set_appschedparam (frsh_thread_id_t thread,
const void *param,
size_t paramsize){
- pthread_setappschedparam(thread, param, paramsize);
+ return pthread_setappschedparam(thread, param, paramsize);
}
/**
// (frsh_thread_id_t thread,
// void *param,
// size_t *paramsize);
-inline int fosa_ads_get_appsched_params (frsh_thread_id_t thread,
+extern inline int fosa_ads_get_appsched_params (frsh_thread_id_t thread,
void *param,
int *paramsize){
- pthread_getappschedparam(thread, param, paramsize);
+ return pthread_getappschedparam(thread, param, paramsize);
}
/*********************************
// int fosa_adsactions_add_reject(
// fosa_ads_actions_t *sched_actions,
// frsh_thread_id_t thread);
-inline int fosa_adsactions_add_reject(fosa_ads_actions_t *sched_actions,
+extern inline int fosa_adsactions_add_reject(fosa_ads_actions_t *sched_actions,
frsh_thread_id_t thread){
- posix_appsched_actions_addreject(sched_actions, thread);
+ return posix_appsched_actions_addreject(sched_actions, thread);
}
/**
* fosa_adsactions_add_activate()
// fosa_ads_actions_t *sched_actions,
// frsh_thread_id_t thread,
// fosa_ads_urgency_t urgency);
-inline int fosa_adsactions_add_activate(
+extern inline int fosa_adsactions_add_activate(
fosa_ads_actions_t *sched_actions,
frsh_thread_id_t thread/*,
fosa_ads_urgency_t urgency*/){
- posix_appsched_actions_addactivate(sched_actions, thread);
+ return posix_appsched_actions_addactivate(sched_actions, thread);
}
/**
* fosa_adsactions_add_suspend()
// int fosa_adsactions_add_suspend(
// fosa_ads_actions_t *sched_actions,
// frsh_thread_id_t thread);
-inline int fosa_adsactions_add_suspend(fosa_ads_actions_t *sched_actions,
+extern inline int fosa_adsactions_add_suspend(fosa_ads_actions_t *sched_actions,
frsh_thread_id_t thread){
- posix_appsched_actions_addsuspend (sched_actions, thread);
+ return posix_appsched_actions_addsuspend (sched_actions, thread);
}
/**
* fosa_adsactions_add_timeout()
* implementation and dependant applications
**/
//int fosa_mutex_init(frsh_mutex_t *mutex, int prioceiling);
-inline int fosa_mutex_init(frsh_mutex_t *mutex, int prioceiling){
+extern inline int fosa_mutex_init(frsh_mutex_t *mutex, int prioceiling){
pthread_mutexattr_t *attr;
*attr->prioceiling=prioceiling;
- pthread_mutex_init(mutex, attr);
+ return pthread_mutex_init(mutex, attr);
}
/**
* implementation and dependant applications
**/
//int fosa_mutex_destroy(frsh_mutex_t *mutex);
-inline int fosa_mutex_destroy(frsh_mutex_t *mutex){
- pthread_mutex_destroy(mutex);
+extern inline int fosa_mutex_destroy(frsh_mutex_t *mutex){
+ return pthread_mutex_destroy(mutex);
}
/**
* fosa_mutex_set_prioceiling()
**/
// int fosa_mutex_set_prioceiling
// (frsh_mutex_t *mutex, int new_ceiling, int *old_ceiling);
-inline int fosa_mutex_set_prioceiling (frsh_mutex_t *mutex,
+extern inline int fosa_mutex_set_prioceiling (frsh_mutex_t *mutex,
int new_ceiling,
int *old_ceiling){
- pthread_mutex_setprioceiling(mutex, new_ceiling, old_ceiling);
+ return pthread_mutex_setprioceiling(mutex, new_ceiling, old_ceiling);
}
/**
* fosa_mutex_get_prioceiling()
* implementation and dependant applications
**/
//int fosa_mutex_get_prioceiling(const frsh_mutex_t *mutex, int *ceiling);
-inline int fosa_mutex_get_prioceiling(const frsh_mutex_t *mutex, int *ceiling){
- pthread_mutex_getprioceiling(mutex, ceiling);
+extern inline int fosa_mutex_get_prioceiling(const frsh_mutex_t *mutex, int *ceiling){
+ return pthread_mutex_getprioceiling(mutex, ceiling);
}
/**
* fosa_mutex_lock()
* implementation and dependant applications
**/
//int fosa_mutex_lock(frsh_mutex_t *mutex);
-inline int fosa_mutex_lock(frsh_mutex_t *mutex){
- pthread_mutex_lock(mutex);
+extern inline int fosa_mutex_lock(frsh_mutex_t *mutex){
+ return pthread_mutex_lock(mutex);
}
/**
* then terminate the FRSH implementation and dependant applications
**/
//int fosa_mutex_trylock(frsh_mutex_t *mutex);
-inline int fosa_mutex_trylock(frsh_mutex_t *mutex){
- pthread_mutex_trylock(mutex);
+extern inline int fosa_mutex_trylock(frsh_mutex_t *mutex){
+ return pthread_mutex_trylock(mutex);
}
/**
* fosa_mutex_unlock()
* then terminate the FRSH implementation and dependant applications
**/
//int fosa_mutex_unlock(frsh_mutex_t *mutex);
-inline int fosa_mutex_unlock(frsh_mutex_t *mutex){
- pthread_mutex_unlock(mutex);
+extern inline int fosa_mutex_unlock(frsh_mutex_t *mutex){
+ return pthread_mutex_unlock(mutex);
}
/**********************
* implementation and dependant applications
**/
//int fosa_cond_init(fosa_cond_t *cond);
-inline int fosa_cond_init(fosa_cond_t *cond){
- //pthread_cond_init(pthread_cond_t *cond,
+extern inline int fosa_cond_init(fosa_cond_t *cond){
+ //return pthread_cond_init(pthread_cond_t *cond,
// const pthread_condattr_t *attr);
}
* implementation and dependant applications
**/
//int fosa_cond_destroy(fosa_cond_t *cond);
-inline int fosa_cond_destroy(fosa_cond_t *cond){
- pthread_cond_destroy(cond);
+extern inline int fosa_cond_destroy(fosa_cond_t *cond){
+ return pthread_cond_destroy(cond);
}
/**
* implementation and dependant applications
**/
//int fosa_cond_signal(fosa_cond_t *cond);
-inline int fosa_cond_signal(fosa_cond_t *cond){
- pthread_cond_signal(cond);
+extern inline int fosa_cond_signal(fosa_cond_t *cond){
+ return pthread_cond_signal(cond);
}
/**
* fosa_cond_broadcast()
* implementation and dependant applications
**/
//int fosa_cond_broadcast(fosa_cond_t *cond);
-inline int fosa_cond_broadcast(fosa_cond_t *cond){
- pthread_cond_broadcast(cond);
+extern inline int fosa_cond_broadcast(fosa_cond_t *cond){
+ return pthread_cond_broadcast(cond);
}
/**
* implementation and dependant applications
**/
//int fosa_cond_wait(fosa_cond_t *cond, frsh_mutex_t *mutex);
-inline int fosa_cond_wait(fosa_cond_t *cond, frsh_mutex_t *mutex){
- pthread_cond_wait(cond, mutex);
+extern inline int fosa_cond_wait(fosa_cond_t *cond, frsh_mutex_t *mutex){
+ return pthread_cond_wait(cond, mutex);
}
/**
**/
// int fosa_cond_timedwait(fosa_cond_t *cond, frsh_mutex_t *mutex,
// const struct timespec abstime);
-inline int fosa_cond_timedwait(fosa_cond_t *cond,
+extern inline int fosa_cond_timedwait(fosa_cond_t *cond,
frsh_mutex_t *mutex,
const struct timespec abstime){
- pthread_cond_timedwait(cond, mutex, abstime);
+ return pthread_cond_timedwait(cond, mutex, abstime);
}
/*@}*/