osd: switching dispatch_running to be a counter

Now it works with multiple messengers dispatching.
This commit is contained in:
Greg Farnum 2010-08-03 14:50:55 -07:00
parent c7d2352971
commit 2fbf1e9f5b
2 changed files with 3 additions and 3 deletions

View File

@ -1846,9 +1846,9 @@ bool OSD::ms_dispatch(Message *m)
{
// lock!
osd_lock.Lock();
dispatch_running = true;
++dispatch_running;
_dispatch(m);
dispatch_running = false;
--dispatch_running;
do_waiters();
osd_lock.Unlock();
return true;

View File

@ -130,7 +130,7 @@ protected:
}
};
bool dispatch_running;
int dispatch_running;
void open_logger();
void start_logger();