mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 08:24:32 -08:00
[util] Replace kutil with util
Now that kutil has no kernel-specific code in it anymore, it can actually be linked to by anything, so I'm renaming it 'util'. Also, I've tried to unify the way that the system libraries from src/libraries are #included using <> instead of "". Other small change: util::bip_buffer got a spinlock to guard against state corruption.
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
#include <stdarg.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "kutil/bip_buffer.h"
|
||||
#include "kutil/spinlock.h"
|
||||
#include <util/bip_buffer.h>
|
||||
#include <util/spinlock.h>
|
||||
|
||||
namespace log {
|
||||
|
||||
@@ -110,8 +110,8 @@ private:
|
||||
|
||||
uint8_t m_sequence;
|
||||
|
||||
kutil::bip_buffer m_buffer;
|
||||
kutil::spinlock m_lock;
|
||||
util::bip_buffer m_buffer;
|
||||
util::spinlock m_lock;
|
||||
|
||||
static logger *s_log;
|
||||
static const char *s_level_names[static_cast<unsigned>(level::max)];
|
||||
@@ -129,6 +129,6 @@ extern log::logger &g_logger;
|
||||
|
||||
namespace logs {
|
||||
#define LOG(name, lvl) extern const log::area_t name;
|
||||
#include "j6/tables/log_areas.inc"
|
||||
#include <j6/tables/log_areas.inc>
|
||||
#undef LOG
|
||||
} // namespace logs
|
||||
|
||||
Reference in New Issue
Block a user