* for the user contexts.
* \return 1 if parallelism is used
*/
-XBT_INLINE int SIMIX_context_is_parallel(void) {
+int SIMIX_context_is_parallel(void) {
return smx_parallel_contexts > 1;
}
* for the user contexts.
* \return the number of threads (1 means no parallelism)
*/
-XBT_INLINE int SIMIX_context_get_nthreads(void) {
+int SIMIX_context_get_nthreads(void) {
return smx_parallel_contexts;
}
* \return when the number of user processes ready to run is above
* this threshold, they are run in parallel
*/
-XBT_INLINE int SIMIX_context_get_parallel_threshold(void) {
+int SIMIX_context_get_parallel_threshold(void) {
return smx_parallel_threshold;
}
* \param threshold when the number of user processes ready to run is above
* this threshold, they are run in parallel
*/
-XBT_INLINE void SIMIX_context_set_parallel_threshold(int threshold) {
+void SIMIX_context_set_parallel_threshold(int threshold) {
smx_parallel_threshold = threshold;
}
* parallel.
* \return how threads are synchronized if processes are run in parallel
*/
-XBT_INLINE e_xbt_parmap_mode_t SIMIX_context_get_parallel_mode(void) {
+e_xbt_parmap_mode_t SIMIX_context_get_parallel_mode(void) {
return smx_parallel_synchronization_mode;
}
* parallel.
* \param mode how to synchronize threads if processes are run in parallel
*/
-XBT_INLINE void SIMIX_context_set_parallel_mode(e_xbt_parmap_mode_t mode) {
+void SIMIX_context_set_parallel_mode(e_xbt_parmap_mode_t mode) {
smx_parallel_synchronization_mode = mode;
}
* \brief Returns the current context of this thread.
* \return the current context of this thread
*/
-XBT_INLINE smx_context_t SIMIX_context_get_current(void)
+smx_context_t SIMIX_context_get_current(void)
{
if (SIMIX_context_is_parallel()) {
#ifdef HAVE_THREAD_LOCAL_STORAGE
* \brief Sets the current context of this thread.
* \param context the context to set
*/
-XBT_INLINE void SIMIX_context_set_current(smx_context_t context)
+void SIMIX_context_set_current(smx_context_t context)
{
if (SIMIX_context_is_parallel()) {
#ifdef HAVE_THREAD_LOCAL_STORAGE