Bug 42463

Summary: refactor dispatcher in spice-server
Product: Spice Reporter: Alon Levy <alevy>
Component: serverAssignee: Spice Bug List <spice-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Alon Levy 2011-11-01 02:31:53 UTC
replace dispatcher implementations in main_dispatcher and red_dispatcher by a single one.

a dispatcher is the current word prevalent in the source for a pipe between two different threads, a message passing mechanism.

The dispatcher has the following requirements:
 receive from a single thread (current users are io and worker threads)
 send from multiple threads

Users would be:

io thread <- worker thread : channel_event
worker thread <- io thread : all red_dispatcher messages (~20)

This is a test bug for git bz for me.
Comment 1 Marc-Andre Lureau 2014-11-03 13:22:11 UTC
Seems to be solved since:

commit 8e049ce3b03c5e0034702d2a4b49b7ca36aaff92
Author: Alon Levy <alevy@redhat.com>
Date:   Mon Oct 31 17:35:30 2011 +0200
CommitDate: Tue Nov 8 16:23:10 2011 +0200

    server/red_worker: reuse dispatcher

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.