Bug 42463 - refactor dispatcher in spice-server
Summary: refactor dispatcher in spice-server
Status: RESOLVED FIXED
Alias: None
Product: Spice
Classification: Unclassified
Component: server (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Spice Bug List
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-01 02:31 UTC by Alon Levy
Modified: 2014-11-03 13:22 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.