mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-19 20:16:15 +02:00
Use strand executors
This commit is contained in:
parent
e6872593ee
commit
12aeb5859c
15 changed files with 38 additions and 38 deletions
|
@ -41,6 +41,8 @@
|
|||
|
||||
|
||||
namespace bp = boost::process;
|
||||
namespace net = boost::asio;
|
||||
|
||||
using json = nlohmann::json;
|
||||
|
||||
|
||||
|
@ -178,6 +180,7 @@ protected:
|
|||
/// Send request to stream control script
|
||||
void sendRequest(const std::string& method, const jsonrpcpp::Parameter& params, ResultHandler handler);
|
||||
|
||||
net::strand<net::any_io_executor> strand_;
|
||||
std::chrono::time_point<std::chrono::steady_clock> tvEncodedChunk_;
|
||||
std::vector<PcmListener*> pcmListeners_;
|
||||
StreamUri uri_;
|
||||
|
@ -185,7 +188,7 @@ protected:
|
|||
size_t chunk_ms_;
|
||||
std::unique_ptr<encoder::Encoder> encoder_;
|
||||
std::string name_;
|
||||
ReaderState state_;
|
||||
std::atomic<ReaderState> state_;
|
||||
Metatags metadata_;
|
||||
Properties properties_;
|
||||
boost::asio::io_context& ioc_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue