From: Suraj Kurapati Date: 2011-09-27T04:54:45+09:00 Subject: [ruby-core:39734] [Ruby 1.9 - Feature #5371][Open] add marshalling support for Mutex Issue #5371 has been reported by Suraj Kurapati. ---------------------------------------- Feature #5371: add marshalling support for Mutex http://redmine.ruby-lang.org/issues/5371 Author: Suraj Kurapati Status: Open Priority: Normal Assignee: Category: core Target version: 1.9.x 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. -- http://redmine.ruby-lang.org