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
Use correct function to free element.
[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
3dc40c5
..
2cd9d87
100644
(file)
--- a/
src/xbt/xbt_os_thread.c
+++ b/
src/xbt/xbt_os_thread.c
@@
-191,16
+191,6
@@
const char *xbt_os_thread_self_name(void)
return me ? me->name : "main";
}
return me ? me->name : "main";
}
-void xbt_os_thread_set_extra_data(void *data)
-{
- xbt_os_thread_self()->extra_data = data;
-}
-
-void *xbt_os_thread_get_extra_data(void)
-{
- return xbt_os_thread_self()->extra_data;
-}
-
void xbt_os_thread_join(xbt_os_thread_t thread, void **thread_return)
{
void xbt_os_thread_join(xbt_os_thread_t thread, void **thread_return)
{
@@
-1135,4
+1125,15
@@
void xbt_os_sem_get_value(xbt_os_sem_t sem, int *svalue)
LeaveCriticalSection(&(sem->value_lock));
}
LeaveCriticalSection(&(sem->value_lock));
}
+
#endif
#endif
+
+void xbt_os_thread_set_extra_data(void *data)
+{
+ xbt_os_thread_self()->extra_data = data;
+}
+
+void *xbt_os_thread_get_extra_data(void)
+{
+ return xbt_os_thread_self()->extra_data;
+}