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
Simply say func(...) instead of (*func)(...) when func is a pointer to function.
[simgrid.git]
/
src
/
bindings
/
java
/
smx_context_java.c
diff --git
a/src/bindings/java/smx_context_java.c
b/src/bindings/java/smx_context_java.c
index
dc5a3dd
..
92005a4
100644
(file)
--- a/
src/bindings/java/smx_context_java.c
+++ b/
src/bindings/java/smx_context_java.c
@@
-104,7
+104,7
@@
static void* smx_ctx_java_thread_run(void *data) {
xbt_os_sem_acquire(context->begin);
//Create the "Process" object if needed.
if (context->super.argc > 0) {
xbt_os_sem_acquire(context->begin);
//Create the "Process" object if needed.
if (context->super.argc > 0) {
-
(*(context->super.code))
(context->super.argc, context->super.argv);
+
context->super.code
(context->super.argc, context->super.argv);
}
else {
smx_process_t process = SIMIX_process_self();
}
else {
smx_process_t process = SIMIX_process_self();