Преглед на файлове

* terminate with an error when initializing a critical section and recursive
mutexes are not available, since one of the expected properties of
(Delphi/Windows-compatible) critical sections is that they ar
re-entrant (mantis #23334)

git-svn-id: trunk@23011 -

Jonas Maebe преди 13 години
родител
ревизия
d3d0df6e4d
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      rtl/unix/cthreads.pp

+ 1 - 1
rtl/unix/cthreads.pp

@@ -463,7 +463,7 @@ Type  PINTRTLEvent = ^TINTRTLEvent;
             res := pthread_mutex_init(@CS,@MAttr)
           else
             { No recursive mutex support :/ }
-            res := pthread_mutex_init(@CS,NIL);
+            fpc_threaderror
         end
       else
         res:= pthread_mutex_init(@CS,NIL);