int i;
#ifdef USE_PTHREADS
+ pthread_mutex_lock(&(context->mutex));
pthread_cond_wait(&(context->cond), &(context->mutex));
pthread_mutex_unlock(&(context->mutex));
#endif
/** \name Functions
* \ingroup XBT_context
*/
-/*@{*/
+/* @{ */
/** Context module initialization
*
* \warning It has to be called before using any other function of this module.
void xbt_context_start(xbt_context_t context)
{
#ifdef USE_PTHREADS
- pthread_mutex_lock(&(context->mutex));
-
/* Launch the thread */
xbt_assert0(!pthread_create(context->thread, NULL, __context_wrapper, context),
"Unable to create a thread.");
return;
}
-
-/*@}*/
+/* @} */