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
Trickier example.
[simgrid.git]
/
testsuite
/
xbt
/
context_usage.c
diff --git
a/testsuite/xbt/context_usage.c
b/testsuite/xbt/context_usage.c
index
749fbaf
..
044ce41
100644
(file)
--- a/
testsuite/xbt/context_usage.c
+++ b/
testsuite/xbt/context_usage.c
@@
-49,8
+49,8
@@
int fB(int argc, char** argv)
printf("Here is fB: ");
print_args(argc,argv);
printf("Here is fB: ");
print_args(argc,argv);
-/* printf("\tContext B: Yield\n"); */
-/* xbt_context_yield(); */
+ printf("\tContext B: Yield\n");
+ xbt_context_yield();
printf("\tContext B: Push context A\n");
xbt_fifo_push(fifo,cA);
printf("\tContext B: Push context A\n");
xbt_fifo_push(fifo,cA);
@@
-125,5
+125,6
@@
int main(int argc, char** argv)
xbt_exit();
cA=cB=cC=NULL;
xbt_exit();
cA=cB=cC=NULL;
+ printf("Context main: Bye\n");
return 0;
}
return 0;
}