0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-01-13 16:33:53 +01:00

ircd::ctx: Use thread_local for these.

This commit is contained in:
Jason Volk 2018-12-23 16:54:09 -08:00
parent fff4379b79
commit 70ebf4b066

View file

@ -771,9 +771,9 @@ noexcept
namespace ircd::ctx
{
bool critical_asserted;
thread_local bool critical_asserted;
void assert_critical();
static void assert_critical();
}
#ifndef NDEBUG
@ -1396,9 +1396,9 @@ ircd::ctx::debug_stats(const pool &pool)
namespace ircd::ctx::prof
{
ulong _slice_start; // Current/last time slice started
ulong _slice_stop; // Last time slice ended
ticker _total; // Totals kept for all contexts.
thread_local ulong _slice_start; // Current/last time slice started
thread_local ulong _slice_stop; // Last time slice ended
thread_local ticker _total; // Totals kept for all contexts.
static void check_stack();
static void check_slice();