Skip to content
Snippets Groups Projects
Commit 7842a8c6 authored by Dmitry E. Oboukhov's avatar Dmitry E. Oboukhov
Browse files

__thread variables can be initialized by name

parent 696d61fb
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,7 @@ static __thread uint32_t last_used_fid;
static __thread struct mh_i32ptr_t *fibers_registry;
__thread SLIST_HEAD(, fiber) fibers, zombie_fibers;
static __thread RLIST_HEAD(ready_fibers);
static __thread struct rlist ready_fibers;
static __thread ev_async ready_async;
static void
......@@ -471,6 +471,7 @@ void
fiber_init(void)
{
SLIST_INIT(&fibers);
rlist_init(&ready_fibers);
fibers_registry = mh_i32ptr_init();
memset(&sched, 0, sizeof(sched));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment