-
-/**
- * @brief Returns the current context of this thread.
- * @return the current context of this thread
- */
-smx_context_t SIMIX_context_get_current()
-{
- if (SIMIX_context_is_parallel()) {
- return smx_current_context_parallel;
- }
- else {
- return smx_current_context_serial;
- }
-}
-
-/**
- * @brief Sets the current context of this thread.
- * @param context the context to set
- */
-void SIMIX_context_set_current(smx_context_t context)
-{
- if (SIMIX_context_is_parallel()) {
- smx_current_context_parallel = context;
- }
- else {
- smx_current_context_serial = context;
- }
-}