]> AND Public Git Repository - simgrid.git/blobdiff - testsuite/xbt/context_usage.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Convert GRAS pid from long int to int; setup a virtualization layer in XBT to choose...
[simgrid.git] / testsuite / xbt / context_usage.c
index 44be3063048d422c1f71cc13b368c375bb4043c3..044ce4107f59843c21e96efc36d11af59a5476b7 100644 (file)
@@ -4,7 +4,7 @@
 
 #include "xbt.h"
 #include "xbt/context.h"
-#include "gras_config.h" /* To know whether we're using threads or context */
+#include "portable.h" /* To know whether we're using threads or context */
 #include "xbt/fifo.h"
 
 xbt_context_t cA = NULL;
@@ -49,8 +49,8 @@ int fB(int argc, char** 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);
@@ -125,5 +125,6 @@ int main(int argc, char** argv)
   xbt_exit();
   
   cA=cB=cC=NULL;
+  printf("Context main: Bye\n");
   return 0;
 }