Explorar el Código

rtl: fix crash in TMultiReadExclusiveWriteSynchronizer.Beginwrite

git-svn-id: trunk@14591 -
paul hace 15 años
padre
commit
9bad162368
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      rtl/objpas/sysutils/sysuthrd.inc

+ 1 - 1
rtl/objpas/sysutils/sysuthrd.inc

@@ -75,7 +75,7 @@ begin
     after aquiring the fwritelock, because otherwise one
     writer could reset the fwaitingwriterlock of another one
     that's about to wait on it) }
-  BasicEventResetEvent(fwaitingwriterlock);
+  RTLeventResetEvent(fwaitingwriterlock);
   { new readers have to block from now on; writers get priority to avoid
     writer starvation (since they have to compete with potentially many
     concurrent readers) }