mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-14 20:47:54 +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;
|
||||
}
|
||||
|
||||
result = entry->ptr;
|
||||
END_WITH_MUTEX();
|
||||
|
||||
#ifdef MPOOL_DEBUG
|
||||
XP_LOGFF( "(size=%d,index=%d,file=%s,lineNo=%d)=>%p",
|
||||
size, entry->index, file, lineNo, entry->ptr );
|
||||
#endif
|
||||
|
||||
result = entry->ptr;
|
||||
END_WITH_MUTEX();
|
||||
|
||||
return result;
|
||||
} /* mpool_alloc */
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue