Browse Source

* fix initial state of basicevent

git-svn-id: trunk@8781 -
micha 18 years ago
parent
commit
5d1a952f2a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rtl/unix/cthreads.pp

+ 1 - 1
rtl/unix/cthreads.pp

@@ -616,7 +616,7 @@ begin
   plocaleventstate(result)^.FWaiters:=0;
   plocaleventstate(result)^.FDestroying:=False;
 {$ifdef has_sem_init}
-  plocaleventstate(result)^.FSem:=cIntSemaphoreInit(true);
+  plocaleventstate(result)^.FSem:=cIntSemaphoreInit(initialstate);
   if plocaleventstate(result)^.FSem=nil then
     begin
       FreeMem(result);