summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrediano Ziglio <fziglio@redhat.com>2017-11-21 16:56:08 +0000
committerFrediano Ziglio <fziglio@redhat.com>2017-11-23 11:39:01 +0000
commite326674ff9103215e75dae4da3d9cf80ec9a14ed (patch)
tree144bdbf67a31e9ba9e39e4d938f7f9db39f9b8f6
parent4e88aa983ed60d7a7c84124814d4d03558e12b57 (diff)
Move streaming mutex to SpiceStream
-rw-r--r--src/spice-streaming-agent.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/spice-streaming-agent.cpp b/src/spice-streaming-agent.cpp
index bc50256..e6291ad 100644
--- a/src/spice-streaming-agent.cpp
+++ b/src/spice-streaming-agent.cpp
@@ -86,6 +86,7 @@ private:
SpiceStream &operator=(const SpiceStream &) = delete;
private:
+ std::mutex stream_mtx;
int streamfd;
};
@@ -93,7 +94,6 @@ static int streaming_requested;
static bool quit;
static bool stdin_ok;
static int log_binary = 0;
-static std::mutex stream_mtx;
bool SpiceStream::have_something_to_read(int *pfd, int timeout)
{