Diff of /tests/cancel3.c [b035ed] .. [e2fd6e]  Maximize  Restore

Switch to side-by-side view

--- a/tests/cancel3.c
+++ b/tests/cancel3.c
@@ -65,7 +65,7 @@
 void *
 mythread(void * arg)
 {
-  int result = 0;
+  int result = ((int)PTHREAD_CANCELED + 1);
   bag_t * bag = (bag_t *) arg;
 
   assert(bag == &threadbag[bag->threadnum]);
@@ -85,7 +85,7 @@
   for (bag->count = 0; bag->count < 100; bag->count++)
     Sleep(100);
 
-  return result;
+  return (void *) result;
 }
 
 int

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks