Mild cleanup
This commit is contained in:
@@ -33,8 +33,6 @@ static bool RUN_LOGGER(nb::DefaultDebugLogger& log) {
|
||||
return log.run();
|
||||
}
|
||||
|
||||
|
||||
|
||||
static const bool LOGGER_RUNNING = RUN_LOGGER(logger);
|
||||
|
||||
} // namespace nb
|
||||
@@ -15,8 +15,15 @@ uint64_t GetPID() {
|
||||
return GetCurrentProcessId();
|
||||
}
|
||||
#endif // _NB_TARGET_WINDOWS
|
||||
|
||||
#ifdef _NB_TARGET_LINUX
|
||||
#endif // _NB_TARGET_LINUX
|
||||
|
||||
#ifdef _NB_TARGET_WINDOWS
|
||||
uint64_t GetTID() {
|
||||
return GetCurrentThreadId();
|
||||
}
|
||||
#endif // _NB_TARGET_WINDOWS
|
||||
#ifdef _NB_TARGET_LINUX
|
||||
#endif // _NB_TARGET_LINUX
|
||||
|
||||
} // namespace nb
|
||||
@@ -1 +1,27 @@
|
||||
#include "Utils.hpp"
|
||||
|
||||
namespace nb {
|
||||
|
||||
using ObjectManagerCodes = ObjectManagerError::Codes;
|
||||
const std::string ObjectManagerError::type = "nb::ObjectManagerError";
|
||||
const ErrorCodeMap ObjectManagerError::ErrorMessages({
|
||||
{ObjectManagerCodes::UNDEFINED, "Error"},
|
||||
{
|
||||
ObjectManagerCodes::NO_MANAGER,
|
||||
"Attempting to create object lock without lock manager"
|
||||
},
|
||||
{
|
||||
ObjectManagerCodes::MANAGER_MISMATCH,
|
||||
"Attempting to delete object lock from mismatched lock manager"
|
||||
},
|
||||
{
|
||||
ObjectManagerCodes::LOCK_OVERFLOW,
|
||||
"Too many object locks allocated"
|
||||
},
|
||||
{
|
||||
ObjectManagerCodes::BAD_THREAD,
|
||||
"Attempting operation from a bad thread"
|
||||
}
|
||||
});
|
||||
|
||||
}; // namespace nb
|
||||
|
||||
Reference in New Issue
Block a user