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
using ucontext as a type name for ucontext_t is not portable
[simgrid.git]
/
src
/
simix
/
UContext.cpp
diff --git
a/src/simix/UContext.cpp
b/src/simix/UContext.cpp
index
6014eca
..
af244c1
100644
(file)
--- a/
src/simix/UContext.cpp
+++ b/
src/simix/UContext.cpp
@@
-37,7
+37,7
@@
* variable is decomposed into a serie of integers and
* each integer is passed as argument to makecontext. */
XBT_PRIVATE
* variable is decomposed into a serie of integers and
* each integer is passed as argument to makecontext. */
XBT_PRIVATE
-void simgrid_makecontext(ucontext* ucp, void (*func)(int first, ...), void* arg)
+void simgrid_makecontext(ucontext
_t
* ucp, void (*func)(int first, ...), void* arg)
{
int ctx_addr[CTX_ADDR_LEN];
memcpy(ctx_addr, &arg, sizeof(void*));
{
int ctx_addr[CTX_ADDR_LEN];
memcpy(ctx_addr, &arg, sizeof(void*));
@@
-232,7
+232,7
@@
UContext::UContext(std::function<void()> code,
#ifdef HAVE_MC
if (MC_is_active() && code) {
#ifdef HAVE_MC
if (MC_is_active() && code) {
- MC_register_stack_area(this->stack_,
context->
process,
+ MC_register_stack_area(this->stack_, process,
&(this->uc_), smx_context_usable_stack_size);
}
#endif
&(this->uc_), smx_context_usable_stack_size);
}
#endif