mirror of
https://github.com/AxioDL/logvisor.git
synced 2025-12-08 21:17:44 +00:00
Better regulation of logging mutex
This commit is contained in:
@@ -193,8 +193,11 @@ void logvisorAbort()
|
||||
|
||||
#endif
|
||||
|
||||
LogMutex _LogMutex;
|
||||
|
||||
static void AbortHandler(int signum)
|
||||
{
|
||||
_LogMutex.enabled = false;
|
||||
switch (signum)
|
||||
{
|
||||
case SIGSEGV:
|
||||
@@ -217,7 +220,6 @@ static std::chrono::steady_clock::time_point GlobalStart = MonoClock.now();
|
||||
static inline std::chrono::steady_clock::duration CurrentUptime()
|
||||
{return MonoClock.now() - GlobalStart;}
|
||||
std::atomic_uint_fast64_t FrameIndex(0);
|
||||
std::recursive_mutex LogMutex;
|
||||
|
||||
static inline int ConsoleWidth()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user