Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AGULLO Emmanuel
Chameleon
Commits
8a285002
Commit
8a285002
authored
Mar 04, 2019
by
Mathieu Faverge
Browse files
Add schedopt parameter to RUNTIME_disable/enable
parent
982c69c2
Changes
2
Hide whitespace changes
Inline
Side-by-side
control/auxiliary.c
View file @
8a285002
...
...
@@ -51,10 +51,12 @@ void chameleon_warning(const char *func_name, const char *msg_text)
CHAM_context_t
*
chamctxt
;
chamctxt
=
chameleon_context_self
();
if
(
chamctxt
==
NULL
)
if
(
chamctxt
==
NULL
)
{
chameleon_fatal_error
(
"chameleon_warning"
,
"CHAMELEON not initialized"
);
if
(
chamctxt
->
warnings_enabled
)
}
if
(
chamctxt
->
warnings_enabled
)
{
fprintf
(
stderr
,
"CHAMELEON WARNING: %s(): %s
\n
"
,
func_name
,
msg_text
);
}
}
/**
...
...
control/context.c
View file @
8a285002
...
...
@@ -168,7 +168,7 @@ int CHAMELEON_Enable(int option)
}
/* Enable at the lower level if required */
RUNTIME_enable
(
option
);
RUNTIME_enable
(
chamctxt
->
schedopt
,
option
);
return
CHAMELEON_SUCCESS
;
}
...
...
@@ -231,7 +231,7 @@ int CHAMELEON_Disable(int option)
}
/* Disable at the lower level if required */
RUNTIME_disable
(
option
);
RUNTIME_disable
(
chamctxt
->
schedopt
,
option
);
return
CHAMELEON_SUCCESS
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment