Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
this declarations and definitions are only concerned by the thread implementation...
authorcherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 22 Oct 2007 11:36:59 +0000 (11:36 +0000)
committercherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 22 Oct 2007 11:36:59 +0000 (11:36 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4846 48e7efb5-ca39-0410-a469-dd3cf9ba447f

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