Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
this declarations and definitions are only concerned by the thread implementation...
[simgrid.git] / src / xbt / context.c
index 4f4edca..c862be6 100644 (file)
@@ -49,6 +49,7 @@ static void _context_ex_terminate(xbt_ex_t * e)
 }
 #endif
 
+#ifdef CONTEXT_THREADS
 
 static void 
 schedule(xbt_context_t c);
@@ -56,7 +57,6 @@ schedule(xbt_context_t c);
 static void 
 unschedule(xbt_context_t c);
 
-
 static void 
 schedule(xbt_context_t c) 
 {
@@ -69,6 +69,7 @@ static void unschedule(xbt_context_t c)
        xbt_os_sem_post(c->end);                
        xbt_os_sem_wait(c->begin);
 }
+#endif
 
 /** \name Functions 
  *  \ingroup XBT_context