[PATCH v3 0/5] Event loop improves

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



These set of patches try to improve current event loop code.

Patches improve test event loop, make a template from
them and use for main loop.
These patches also improve glib main loop patch from Marc and
supercede fixes for timers reducing original patch size and making
easier to test code.

Changes from v2:
- avoid use of not necessary template;
- add test;
- add cleanup patch;
- fix file name convenction.

Frediano Ziglio (4):
  tests: do not use default loop context
  tests: remove unused macro
  tests: create and use a template file for events
  tests: add a test for event loop

Marc-André Lureau (1):
  worker: use glib main loop

 server/Makefile.am              |   4 +-
 server/event-loop.c             | 183 +++++++++++++++++++++++++++
 server/event-loop.h             |  34 +++++
 server/red-worker.c             | 252 +++++++++++++++----------------------
 server/red-worker.h             |   1 +
 server/spice_timer_queue.c      | 266 ----------------------------------------
 server/spice_timer_queue.h      |  43 -------
 server/tests/Makefile.am        |   8 ++
 server/tests/basic_event_loop.c | 154 +++--------------------
 server/tests/basic_event_loop.h |   3 +
 server/tests/replay.c           |  18 ++-
 server/tests/test_loop.c        | 134 ++++++++++++++++++++
 12 files changed, 495 insertions(+), 605 deletions(-)
 create mode 100644 server/event-loop.c
 create mode 100644 server/event-loop.h
 delete mode 100644 server/spice_timer_queue.c
 delete mode 100644 server/spice_timer_queue.h
 create mode 100644 server/tests/test_loop.c

-- 
2.4.3

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]