A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
removing tracing functions from examples that are not in msg/tracing directory
[simgrid.git]
/
src
/
xbt
/
xbt_sg_stubs.c
diff --git
a/src/xbt/xbt_sg_stubs.c
b/src/xbt/xbt_sg_stubs.c
index
7feeeec
..
b609c10
100644
(file)
--- a/
src/xbt/xbt_sg_stubs.c
+++ b/
src/xbt/xbt_sg_stubs.c
@@
-1,5
+1,3
@@
-/* $Id$ */
-
/* xbt_sg_stubs -- empty functions sometimes used in SG (never in RL) */
/* This is always part of SG, never of RL. Content: */
/* xbt_sg_stubs -- empty functions sometimes used in SG (never in RL) */
/* This is always part of SG, never of RL. Content: */
@@
-11,8
+9,8
@@
/* In RL, java is useless, and threads are always part of the picture, */
/* ucontext never */
/* In RL, java is useless, and threads are always part of the picture, */
/* ucontext never */
-/* Copyright (c) 2007
Martin Quinson. */
-
/
* All rights reserved. */
+/* Copyright (c) 2007
, 2008, 2009, 2010. The SimGrid Team.
+
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
@@
-29,11
+27,11
@@
*/
/* Mod_init/exit mecanism */
*/
/* Mod_init/exit mecanism */
-void xbt_os_thread_mod_init(void)
+void xbt_os_thread_mod_
pre
init(void)
{
}
{
}
-void xbt_os_thread_mod_exit(void)
+void xbt_os_thread_mod_
post
exit(void)
{
}
{
}
@@
-73,30
+71,39
@@
void xbt_os_thread_yield(void)
xbt_os_mutex_t xbt_os_mutex_init(void)
{
xbt_os_mutex_t xbt_os_mutex_init(void)
{
+ /*
xbt_backtrace_display_current();
xbt_die
("No pthread in SG when compiled against the ucontext (xbt_os_mutex_init)");
xbt_backtrace_display_current();
xbt_die
("No pthread in SG when compiled against the ucontext (xbt_os_mutex_init)");
+ */
+ return NULL;
}
void xbt_os_mutex_acquire(xbt_os_mutex_t mutex)
{
}
void xbt_os_mutex_acquire(xbt_os_mutex_t mutex)
{
+ /*
xbt_backtrace_display_current();
xbt_die
("No pthread in SG when compiled against the ucontext (xbt_os_mutex_acquire)");
xbt_backtrace_display_current();
xbt_die
("No pthread in SG when compiled against the ucontext (xbt_os_mutex_acquire)");
+ */
}
void xbt_os_mutex_release(xbt_os_mutex_t mutex)
{
}
void xbt_os_mutex_release(xbt_os_mutex_t mutex)
{
+ /*
xbt_backtrace_display_current();
xbt_die
("No pthread in SG when compiled against the ucontext (xbt_os_mutex_release)");
xbt_backtrace_display_current();
xbt_die
("No pthread in SG when compiled against the ucontext (xbt_os_mutex_release)");
+ */
}
void xbt_os_mutex_destroy(xbt_os_mutex_t mutex)
{
}
void xbt_os_mutex_destroy(xbt_os_mutex_t mutex)
{
+ /*
xbt_backtrace_display_current();
xbt_die
("No pthread in SG when compiled against the ucontext (xbt_os_mutex_destroy)");
xbt_backtrace_display_current();
xbt_die
("No pthread in SG when compiled against the ucontext (xbt_os_mutex_destroy)");
+ */
}
xbt_os_cond_t xbt_os_cond_init(void)
}
xbt_os_cond_t xbt_os_cond_init(void)
@@
-134,11
+141,3
@@
void xbt_os_cond_destroy(xbt_os_cond_t cond)
("No pthread in SG when compiled against the ucontext (xbt_os_cond_destroy)");
}
#endif
("No pthread in SG when compiled against the ucontext (xbt_os_cond_destroy)");
}
#endif
-
-
-#ifndef HAVE_JAVA
-#include "xbt/xbt_context_private.h"
-void xbt_ctx_java_factory_init(xbt_context_factory_t * factory)
-{
-}
-#endif