浏览代码

* initialise timespec.tv_sec again for generic BasicEventWaitFor

git-svn-id: trunk@8836 -
Jonas Maebe 18 年之前
父节点
当前提交
2701a0f743
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      rtl/unix/cthreads.pp

+ 1 - 0
rtl/unix/cthreads.pp

@@ -820,6 +820,7 @@ begin
       else
         result := wrError;
 {$else}
+      timespec.tv_sec:=0;
       { 500 miliseconds or less -> wait once for this duration }
       if (timeout <= 500) then
         loopcnt:=1