diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2010-01-12 08:15:38 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2010-04-06 11:34:21 +0200 |
commit | 91bc0e8625d8878d93648dbb452c37fcf85305f5 (patch) | |
tree | 558306c8fa866842b8074fbe56a6d52d3880db26 /client | |
parent | cc943035c94fc6d6e300330f73087ac5bf63897b (diff) |
client: fix unsafe access to an event member
Diffstat (limited to 'client')
-rw-r--r-- | client/process_loop.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/client/process_loop.cpp b/client/process_loop.cpp index 794f29d..b7b42e2 100644 --- a/client/process_loop.cpp +++ b/client/process_loop.cpp @@ -49,7 +49,7 @@ void SyncEvent::response(AbstractProcessLoop& events_loop) void SyncEvent::wait() { #ifdef RED_DEBUG - ASSERT(!_process_loop || !_process_loop->is_same_thread(pthread_self())); + ASSERT(_process_loop && !_process_loop->is_same_thread(pthread_self())); #endif Lock lock(_mutex); while (!_ready) { @@ -123,9 +123,6 @@ void EventsQueue::process_events() lock.unlock(); event->response(_owner); -#ifdef RED_DEBUG - event->set_process_loop(NULL); -#endif event->unref(); } } |