Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
change the output directories
[simgrid.git] / testsuite / xbt / context_usage.c
index 702509b..044ce41 100644 (file)
@@ -4,15 +4,7 @@
 
 #include "xbt.h"
 #include "xbt/context.h"
-
-/* To know whether we're using threads or context */
-
-#ifdef _WIN32
-# include "win32/config.h"
-#else
-#  include "gras_config.h"
-#endif
-
+#include "portable.h" /* To know whether we're using threads or context */
 #include "xbt/fifo.h"
 
 xbt_context_t cA = NULL;
@@ -57,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);
@@ -133,5 +125,6 @@ int main(int argc, char** argv)
   xbt_exit();
   
   cA=cB=cC=NULL;
+  printf("Context main: Bye\n");
   return 0;
 }