First working jukebox using Subsonic API
This commit is contained in:
@@ -37,10 +37,12 @@ namespace lms::core::logging
|
||||
DEBUG,
|
||||
};
|
||||
|
||||
// TODO remove this and make each module define its name
|
||||
enum class Module
|
||||
{
|
||||
API_SUBSONIC,
|
||||
AUDIO,
|
||||
AUDIO_OUTPUT_STREAM,
|
||||
AUTH,
|
||||
CHILDPROCESS,
|
||||
COVER,
|
||||
@@ -48,6 +50,7 @@ namespace lms::core::logging
|
||||
DBUPDATER,
|
||||
FEATURE,
|
||||
FEEDBACK,
|
||||
JUKEBOX,
|
||||
HTTP,
|
||||
MAIN,
|
||||
METADATA,
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <thread>
|
||||
#include <vector>
|
||||
|
||||
#include <boost/asio/executor_work_guard.hpp>
|
||||
#include <boost/asio/io_context.hpp>
|
||||
@@ -34,10 +35,11 @@ namespace lms::core
|
||||
IOContextRunner(const IOContextRunner&) = delete;
|
||||
IOContextRunner& operator=(const IOContextRunner&) = delete;
|
||||
|
||||
void stop();
|
||||
void wait();
|
||||
std::size_t getThreadCount() const;
|
||||
|
||||
private:
|
||||
const std::string _name;
|
||||
boost::asio::io_context& _ioContext;
|
||||
boost::asio::executor_work_guard<boost::asio::io_context::executor_type> _work;
|
||||
std::vector<std::thread> _threads;
|
||||
|
||||
Reference in New Issue
Block a user