From: cherierm Date: Mon, 22 Oct 2007 11:36:59 +0000 (+0000) Subject: this declarations and definitions are only concerned by the thread implementation... X-Git-Tag: v3.3~954 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/a123c4c5a80c3d2c1e60458750a8ad5f9bd4968d this declarations and definitions are only concerned by the thread implementation of the xbt context git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4846 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/xbt/context.c b/src/xbt/context.c index 4f4edcaf46..c862be6b94 100644 --- a/src/xbt/context.c +++ b/src/xbt/context.c @@ -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