Project

General

Profile

Actions

Feature #5371

closed

add marshalling support for Mutex

Added by sunaku (Suraj Kurapati) over 12 years ago. Updated about 12 years ago.

Status:
Rejected
Assignee:
-
Target version:
[ruby-core:39734]

Description

Hello,

Please add marshalling support for the Mutex class:

$ irb

Marshal.dump(Mutex.new)
TypeError: no marshal_dump is defined for class Mutex
from (irb):1:in dump' from (irb):1 from /usr/bin/irb:12:in '

Here is the workaround I am currently using:

class Mutex
def marshal_dump
[]
end
def marshal_load array
# do nothing
end
end

Thanks for your consideration.

Actions

Also available in: Atom PDF

Like0
Like0Like0