From 5404abaa49a18514daf8c955a4e0b30c9e92931d Mon Sep 17 00:00:00 2001 From: Ilya Verbin <iverbin@tarantool.org> Date: Thu, 9 Jun 2022 15:16:32 +0300 Subject: [PATCH] core: get rid of fiber_set_cancellable in latch.h fiber_wakeup has been adapted to spurious wakeups, so this protection is no longer needed. Part of #7166 NO_DOC=refactoring NO_TEST=refactoring NO_CHANGELOG=refactoring --- src/lib/core/latch.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/lib/core/latch.h b/src/lib/core/latch.h index bd27e25ebc..d8b6158313 100644 --- a/src/lib/core/latch.h +++ b/src/lib/core/latch.h @@ -144,7 +144,6 @@ latch_lock_timeout(struct latch *l, ev_tstamp timeout) if (timeout <= 0) return 1; - bool was_cancellable = fiber_set_cancellable(false); int result = 0; struct latch_waiter waiter; waiter.fiber = fiber(); @@ -163,7 +162,6 @@ latch_lock_timeout(struct latch *l, ev_tstamp timeout) } } rlist_del_entry(&waiter, link); - fiber_set_cancellable(was_cancellable); return result; } -- GitLab