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:
parent
fff4379b79
commit
70ebf4b066
1 changed files with 5 additions and 5 deletions
10
ircd/ctx.cc
10
ircd/ctx.cc
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue