void Plugin_Quit() { forwarder->Quit(); streamManager->quit(); streamer.release(); forwarder.release(); mpdClient.release(); streamManager.release(); io_service.stop(); //::WaitForSingleObject(io_sync_mutex, INFINITE); }
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; } }
void Connection::terminate() { g_ioService.stop(); m_outputStreams.clear(); }
virtual ~AsioMTImpl() { io_svc.stop(); io_thread.join(); }
void term() { io_service.stop(); }
void Connection::terminate() { g_ioService.stop(); }