Explorar o código

* theapthread test: put the sleep in the right place to increase odds of freeing after other thread exit

git-svn-id: trunk@7651 -
micha %!s(int64=18) %!d(string=hai) anos
pai
achega
2bcbebc438
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tests/test/theapthread.pp

+ 1 - 1
tests/test/theapthread.pp

@@ -83,8 +83,8 @@ begin
     end;
   end;
   freearray(p, sizeof(p) div sizeof(pointer));
-  sleep(200);
   entercriticalsection(freefifolock);
+  sleep(200);
   freearray(fifo, sizeof(fifo) div sizeof(pointer));
   freemem(shared);
   leavecriticalsection(freefifolock);