Browse Source

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

git-svn-id: trunk@7651 -
micha 18 years ago
parent
commit
2bcbebc438
1 changed files with 1 additions and 1 deletions
  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);