Project

General

Profile

Actions

Feature #17125

closed

Remove Thread.exclusive

Added by znz (Kazuhiro NISHIYAMA) over 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
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0