ActionsLike0
Feature #5371
closedadd marshalling support for Mutex
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:indump' 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.
Updated by mame (Yusuke Endoh) about 13 years ago
- Status changed from Open to Rejected
ActionsLike0