From a123c4c5a80c3d2c1e60458750a8ad5f9bd4968d Mon Sep 17 00:00:00 2001 From: cherierm Date: Mon, 22 Oct 2007 11:36:59 +0000 Subject: [PATCH 1/1] 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 --- src/xbt/context.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.20.1