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
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
[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
ed0a8ac
..
f295495
100644
(file)
--- a/
src/xbt/xbt_os_thread.c
+++ b/
src/xbt/xbt_os_thread.c
@@
-230,6
+230,14
@@
void xbt_os_thread_setstacksize(int stack_size)
XBT_WARN("unknown error %d in pthread stacksize setting: %zd", res, sz);
}
XBT_WARN("unknown error %d in pthread stacksize setting: %zd", res, sz);
}
+void xbt_os_thread_setguardsize(int guard_size)
+{
+ size_t sz = guard_size;
+ int res = pthread_attr_setguardsize(&thread_attr, sz);
+ if (res)
+ XBT_WARN("pthread_attr_setguardsize failed (%d) for size: %zd", res, sz);
+}
+
const char *xbt_os_thread_name(xbt_os_thread_t t)
{
return t->name;
const char *xbt_os_thread_name(xbt_os_thread_t t)
{
return t->name;
@@
-758,6
+766,11
@@
void xbt_os_thread_setstacksize(int size)
stack_size = size;
}
stack_size = size;
}
+void xbt_os_thread_setguardsize(int size)
+{
+ XBT_WARN("xbt_os_thread_setguardsize is not implemented (%d)", size);
+}
+
const char *xbt_os_thread_name(xbt_os_thread_t t)
{
return t->name;
const char *xbt_os_thread_name(xbt_os_thread_t t)
{
return t->name;