avoid acquiring a mutex recursively in markDirty

This commit is contained in:
Joel Dice 2009-11-19 19:41:49 -07:00
parent 5f5cc57d12
commit e91157a390

View File

@ -1022,7 +1022,9 @@ void
markDirty(Context* c, Fixie* f)
{
if (not f->dirty) {
#ifdef USE_ATOMIC_OPERATIONS
ACQUIRE(c->lock);
#endif
if (not f->dirty) {
f->dirty = true;