Project

General

Profile

Actions

Feature #17125

closed

Remove Thread.exclusive

Added by znz (Kazuhiro NISHIYAMA) about 4 years ago. Updated about 4 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:99636]

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 naruse (Yui NARUSE) about 4 years ago

We checked gems which use this API and they look obsoleted.e
We should check the impact with preview.
Go ahead

Actions #3

Updated by znz (Kazuhiro NISHIYAMA) about 4 years ago

  • Status changed from Open to Closed

Applied in changeset git|3353baac3d55e1b42515ce7084e7b7f07abc0192.


Use own mutex instead of Thread.exclusive

ref [Feature #17125]

Actions #4

Updated by znz (Kazuhiro NISHIYAMA) about 4 years ago

  • Status changed from Closed to Open

Updated by matz (Yukihiro Matsumoto) about 4 years ago

OK. Let's remove them.

Matz.

Actions #6

Updated by shyouhei (Shyouhei Urabe) about 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

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0