> Hello,
>
> Please add marshalling support for the Mutex class:
>
> $ irb
>>> Marshal.dump(Mutex.new)
> TypeError: no marshal_dump is defined for class Mutex
> =A0 =A0 =A0 =A0from (irb):1:in `dump'
> =A0 =A0 =A0 =A0from (irb):1
> =A0 =A0 =A0 =A0from /usr/bin/irb:12:in `<main>'

Because of, Almost all OSs don't have a way to restore mutex locking state.
I have no idea how implement it. ;-)


> Here is the workaround I am currently using:
>
> class Mutex
> =A0def marshal_dump
> =A0 =A0[]
> =A0end
> =A0def marshal_load array
> =A0 =A0# do nothing
> =A0end
> end
>
> Thanks for your consideration.

Hmmm??
It seems locking state lost. Is this acceptable?