Esempio n. 1
0
void Plugin_Quit()
{
	forwarder->Quit();
	streamManager->quit();

	streamer.release();
	forwarder.release();
	mpdClient.release();
	streamManager.release();

	io_service.stop();
	//::WaitForSingleObject(io_sync_mutex, INFINITE);
}
Esempio n. 2
0
void handleConnected(asio::io_service &ioService, RedisAsyncClient &redis,
        bool ok, const std::string &errmsg)
{
    if( ok )
    {
        redis.command("SET", redisKey, redisValue, [&](const RedisValue &v) {
            std::cerr << "SET: " << v.toString() << std::endl;

            redis.command("GET", redisKey, [&](const RedisValue &v) {
                std::cerr << "GET: " << v.toString() << std::endl;

                redis.command("DEL", redisKey, [&](const RedisValue &) {
                    ioService.stop();
                });
            });
        });
    }
    else
    {
        std::cerr << "Can't connect to redis: " << errmsg << std::endl;
    }
}
Esempio n. 3
0
void Connection::terminate()
{
    g_ioService.stop();
    m_outputStreams.clear();
}
Esempio n. 4
0
	virtual ~AsioMTImpl() {
		io_svc.stop();
		io_thread.join();
	}
Esempio n. 5
0
File: WorkQ.hpp Progetto: urykhy/rpc
 void term() {
     io_service.stop();
 }
Esempio n. 6
0
void Connection::terminate()
{
    g_ioService.stop();
}