* fix heap mutex deadlock in case of runtime error within heap management (needs recursive heap mutex)

git-svn-id: trunk@7337 -
This commit is contained in:
micha 2007-05-14 21:09:16 +00:00
parent 20206500aa
commit 6ec55d2e74

View File

@ -520,22 +520,22 @@ end;
procedure PThreadHeapMutexInit;
begin
pthread_mutex_init(@heapmutex,nil);
CInitCriticalSection(heapmutex);
end;
procedure PThreadHeapMutexDone;
begin
pthread_mutex_destroy(@heapmutex);
CDoneCriticalSection(heapmutex);
end;
procedure PThreadHeapMutexLock;
begin
pthread_mutex_lock(@heapmutex);
CEnterCriticalSection(heapmutex);
end;
procedure PThreadHeapMutexUnlock;
begin
pthread_mutex_unlock(@heapmutex);
CLeaveCriticalSection(heapmutex);
end;
const