Actions
Feature #17125
closedRemove Thread.exclusive
Status:
Closed
Assignee:
-
Target version:
-
Description
Thread.exclusive
is deprecated since 2.3.
% docker run -it --rm rubylang/all-ruby env ALL_RUBY_SINCE=ruby-1.8 ./all-ruby -r thread -e 'Thread.exclusive{}'
ruby-1.8.0
...
ruby-2.3.0-preview1
ruby-2.3.0-preview2 Thread.exclusive is deprecated, use Mutex
-e:1:in `<main>'
...
ruby-2.4.0-preview1 Thread.exclusive is deprecated, use Mutex
-e:1:in `<main>'
ruby-2.4.0-preview2 Thread.exclusive is deprecated, use Thread::Mutex
-e:1:in `<main>'
...
ruby-2.7.0-preview1 Thread.exclusive is deprecated, use Thread::Mutex
-e:1:in `<main>'
ruby-2.7.0-preview2 -e:1: warning: Thread.exclusive is deprecated, use Thread::Mutex
...
ruby-2.7.1 -e:1: warning: Thread.exclusive is deprecated, use Thread::Mutex
Updated by shyouhei (Shyouhei Urabe) over 4 years ago
Updated by naruse (Yui NARUSE) over 4 years ago
We checked gems which use this API and they look obsoleted.e
We should check the impact with preview.
Go ahead
Updated by znz (Kazuhiro NISHIYAMA) over 4 years ago
- Status changed from Open to Closed
Applied in changeset git|3353baac3d55e1b42515ce7084e7b7f07abc0192.
Use own mutex instead of Thread.exclusive
ref [Feature #17125]
Updated by znz (Kazuhiro NISHIYAMA) over 4 years ago
- Status changed from Closed to Open
Updated by matz (Yukihiro Matsumoto) over 4 years ago
OK. Let's remove them.
Matz.
Updated by shyouhei (Shyouhei Urabe) over 4 years ago
- Status changed from Open to Closed
Applied in changeset git|b674fc9ca2498d55c7e4f91592279eb985b8bea1.
Thread.exclusive: delete
Has been deprecated since 2069c9e031fc968d6d3d0fe30a9316851e4d91d8.
[Feature #17125][ruby-core:99636]
Actions
Like0
Like0Like0Like0Like0Like0Like0