win32utils-devel@rubyforge.org
2004-Feb-25 02:16 UTC
[Win32utils-devel] win32-mmap committed
Hi all, I have committed win32-mmap package. It is similar to mmap or shared memory of unix Basically, it can be used for variable sharing like this In server side =================================m = Mmap.new a = 1 m.setvar("a",a) ================================== In client side =================================m = Mmap.new(''reuse''=>true) a = m.getvar("a") ================================== It can be more compact like this In server side =================================class Mmap attr_accessor :t1 end m = Mmap.new m.t1 = 1 ================================== In client side =================================class Mmap attr_accessor :t1 end m = Mmap.new(''reuse''=>true) p m.t1 ================================== Test and Modify at your own risk :) Regards, Park Heesob --MIME Multi-part separator--
win32utils-devel@rubyforge.org
2004-Feb-25 10:01 UTC
[Win32utils-devel] win32-mmap committed
> -----Original Message----- > From: win32utils-devel-bounces@rubyforge.org > [mailto:win32utils-devel-bounces@rubyforge.org] On Behalf Of > win32utils-devel@rubyforge.org > Sent: Wednesday, February 25, 2004 12:08 AM > To: win32utils-devel@rubyforge.org > Subject: [Win32utils-devel] win32-mmap committed > > > Hi all, > > I have committed win32-mmap package. > It is similar to mmap or shared memory of unixExcellent! I''ll take a look this week. Dan