* 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 -
This commit is contained in:
Jonas Maebe 2012-11-18 10:23:44 +00:00
parent 676db6d377
commit d3d0df6e4d

View File

@ -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);