mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01:00
ircd::ctx: Use thread_local keyword for current.
This commit is contained in:
parent
1ebe09f36b
commit
0fd8019149
2 changed files with 3 additions and 2 deletions
|
@ -44,7 +44,7 @@ inline namespace this_ctx
|
|||
namespace ircd::ctx
|
||||
{
|
||||
/// Points to the currently running context or null for main stack (do not modify)
|
||||
extern __thread ctx *current;
|
||||
extern thread_local ctx *current;
|
||||
}
|
||||
|
||||
namespace ircd
|
||||
|
|
|
@ -687,7 +687,8 @@ noexcept
|
|||
//
|
||||
|
||||
// set by the continuation object and the base frame.
|
||||
__thread ircd::ctx::ctx *
|
||||
thread_local
|
||||
ircd::ctx::ctx *
|
||||
ircd::ctx::current;
|
||||
|
||||
/// Yield the currently running context until `time_point` ignoring notes
|
||||
|
|
Loading…
Reference in a new issue