浏览代码

* 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 年之前
父节点
当前提交
2bcbebc438
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);