summaryrefslogtreecommitdiffstats
path: root/client/x11/events_loop_p.h
diff options
context:
space:
mode:
authorYonit Halperin <yhalperi@redhat.com>2009-11-08 16:34:12 +0200
committerYaniv Kamay <ykamay@redhat.com>2010-01-03 17:17:06 +0200
commit78f8d4b9e8fdb09055c04e82e30b6a0290795339 (patch)
treeaa883b71aec074544d3d56b5e0a2040d5ef1cc2e /client/x11/events_loop_p.h
parent83efc81f30b4625f40983a5771cfdccc5860f8e6 (diff)
downloadspice-78f8d4b9e8fdb09055c04e82e30b6a0290795339.tar.gz
spice-78f8d4b9e8fdb09055c04e82e30b6a0290795339.tar.xz
spice-78f8d4b9e8fdb09055c04e82e30b6a0290795339.zip
spice client: creating a general process loop.
The process loop is responsible for: 1) waiting for events 2) timers 3) events queue for actions that should be performed in the context of the thread and are pushed from other threads. The benefits: 1) remove duplicity: till now, there was one implementaion of events loop for the channels and another one for the main thread. 2) timers can be executed on each thread and not only on the main thread. 3) events can be pushed to each thread and not only to the main thread. In this commit, only the main thread was modified to use the new process loop.
Diffstat (limited to 'client/x11/events_loop_p.h')
-rw-r--r--client/x11/events_loop_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/x11/events_loop_p.h b/client/x11/events_loop_p.h
index 0a70d3ed..d339ca4b 100644
--- a/client/x11/events_loop_p.h
+++ b/client/x11/events_loop_p.h
@@ -31,6 +31,7 @@ class EventWrapper;
class EventsLoop_p {
public:
+ class Trigger_p;
void remove_wrapper(EventWrapper*);
public:
@@ -41,7 +42,7 @@ public:
friend class EventWrapper;
};
-class Trigger_p {
+class EventsLoop_p::Trigger_p {
public:
Trigger_p() : _pending_int (false) {}
int get_fd() { return _event_fd;}