26 lines
529 B
C++
26 lines
529 B
C++
#include "init_spark_lib.h"
|
|
#include "lib/logging/logging.h"
|
|
#include "lib/utils/bts_assert.h"
|
|
#include "lib/utils/thread_manager.h"
|
|
|
|
namespace bts {
|
|
namespace utils {
|
|
|
|
static log::LoggingConfigPoller *poller = nullptr;
|
|
|
|
void init_spark_lib() {
|
|
threading::configure_current_thread("main");
|
|
log::start_default_logging_thread();
|
|
poller = new log::LoggingConfigPoller();
|
|
}
|
|
|
|
void finit_spark_lib() {
|
|
LOG(Gen, Info, "finit_spark_lib");
|
|
if (poller) {
|
|
delete poller;
|
|
}
|
|
}
|
|
|
|
} // namespace utils
|
|
} // namespace bts
|