diff options
author | Jonathon Jongsma <jjongsma@redhat.com> | 2015-02-06 11:53:36 -0600 |
---|---|---|
committer | Fabiano FidĂȘncio <fidencio@redhat.com> | 2015-02-23 23:00:46 +0100 |
commit | 1c7cf80e55776fd1e4b60d972c309390660587dc (patch) | |
tree | 0b9ed7f0249ed4b3f0726c1a4232f035ff376abd /server/reds-stream.h | |
parent | e1dc7ed57855695fd7750e0725f80973f075a1ce (diff) | |
download | spice-1c7cf80e55776fd1e4b60d972c309390660587dc.tar.gz spice-1c7cf80e55776fd1e4b60d972c309390660587dc.tar.xz spice-1c7cf80e55776fd1e4b60d972c309390660587dc.zip |
Remove global 'dispatchers', 'num_active_workers' variables
Since these are server-level variables, move them into RedsState.
However, num_active_workers was removed because:
- each dispatcher always has 1 active worker, so we can determine the
number of active workers by counting the dispatchers
- it was never actually set correctly. Even if there was more than one
worker, this variable was always only set to either 0 or 1.
This change required moving a bunch of helper code into RedsState as
well, an providing some RedDispatcher interfaces to access dispatcher
information from RedsState.
Diffstat (limited to 'server/reds-stream.h')
0 files changed, 0 insertions, 0 deletions