mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-15 08:47:56 +01:00
move logging out of a critical section
Could maybe possibly deadlock maybe?
This commit is contained in:
parent
682f269724
commit
ac194eb583
1 changed files with 3 additions and 3 deletions
|
@ -196,14 +196,14 @@ mpool_alloc( MemPoolCtx* mpool, XP_U32 size, const char* file,
|
||||||
mpool->stats.maxBytes = mpool->stats.curBytes;
|
mpool->stats.maxBytes = mpool->stats.curBytes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
result = entry->ptr;
|
||||||
|
END_WITH_MUTEX();
|
||||||
|
|
||||||
#ifdef MPOOL_DEBUG
|
#ifdef MPOOL_DEBUG
|
||||||
XP_LOGFF( "(size=%d,index=%d,file=%s,lineNo=%d)=>%p",
|
XP_LOGFF( "(size=%d,index=%d,file=%s,lineNo=%d)=>%p",
|
||||||
size, entry->index, file, lineNo, entry->ptr );
|
size, entry->index, file, lineNo, entry->ptr );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
result = entry->ptr;
|
|
||||||
END_WITH_MUTEX();
|
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
} /* mpool_alloc */
|
} /* mpool_alloc */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue