From 696d61fbfc2f39e7c972ca6eb0c0cd90964b209b Mon Sep 17 00:00:00 2001
From: "Dmitry E. Oboukhov" <unera@debian.org>
Date: Tue, 16 Oct 2012 22:35:35 +0400
Subject: [PATCH] fiber variables with __thread attribute

---
 src/fiber.m | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/fiber.m b/src/fiber.m
index f1f6542bb8..0b183dcae3 100644
--- a/src/fiber.m
+++ b/src/fiber.m
@@ -57,8 +57,8 @@ static __thread uint32_t last_used_fid;
 static __thread struct mh_i32ptr_t *fibers_registry;
 __thread SLIST_HEAD(, fiber) fibers, zombie_fibers;
 
-static RLIST_HEAD(ready_fibers);
-static ev_async ready_async;
+static __thread RLIST_HEAD(ready_fibers);
+static __thread ev_async ready_async;
 
 static void
 update_last_stack_frame(struct fiber *fiber)
-- 
GitLab