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
model-checker : check if a difference detected in stack comparison is a pointer on...
[simgrid.git]
/
src
/
xbt
/
xbt_os_thread.c
diff --git
a/src/xbt/xbt_os_thread.c
b/src/xbt/xbt_os_thread.c
index
8c9f2b0
..
e18ae2e
100644
(file)
--- a/
src/xbt/xbt_os_thread.c
+++ b/
src/xbt/xbt_os_thread.c
@@
-74,8
+74,7
@@
static xbt_running_ctx_t *_os_thread_get_running_ctx(void)
static void _os_thread_ex_terminate(xbt_ex_t * e)
{
xbt_ex_display(e);
static void _os_thread_ex_terminate(xbt_ex_t * e)
{
xbt_ex_display(e);
-
- abort();
+ xbt_abort();
/* FIXME: there should be a configuration variable to choose to kill everyone or only this one */
}
/* FIXME: there should be a configuration variable to choose to kill everyone or only this one */
}
@@
-138,7
+137,7
@@
int xbt_os_thread_atfork(void (*prepare)(void),
void (*parent)(void), void (*child)(void))
{
#ifdef WIN32
void (*parent)(void), void (*child)(void))
{
#ifdef WIN32
-
THROW_UNIMPLEMENTED; //pthread_atfork is not implemented in pthread.h on windows
+ THROW_UNIMPLEMENTED; //pthread_atfork is not implemented in pthread.h on windows
#else
return pthread_atfork(prepare, parent, child);
#endif
#else
return pthread_atfork(prepare, parent, child);
#endif
@@
-642,7
+641,7
@@
typedef struct xbt_os_thread_ {
#endif
/* the default size of the stack of the threads (in bytes)*/
#endif
/* the default size of the stack of the threads (in bytes)*/
-#define XBT_DEFAULT_THREAD_STACK_SIZE 4096
+#define XBT_DEFAULT_THREAD_STACK_SIZE 4096
/* key to the TLS containing the xbt_os_thread_t structure */
static unsigned long xbt_self_thread_key;
/* key to the TLS containing the xbt_os_thread_t structure */
static unsigned long xbt_self_thread_key;