[Spice-commits] client/process_loop.cpp
Alexander Larsson
alexl at kemper.freedesktop.org
Tue Apr 6 02:40:24 PDT 2010
client/process_loop.cpp | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
New commits:
commit 91bc0e8625d8878d93648dbb452c37fcf85305f5
Author: Yonit Halperin <yhalperi at redhat.com>
Date: Tue Jan 12 08:15:38 2010 +0200
client: fix unsafe access to an event member
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();
}
}
More information about the Spice-commits
mailing list