2011-12-12 03:39:55 +00:00
|
|
|
require 'ffi'
|
|
|
|
|
2011-12-13 03:38:47 +00:00
|
|
|
if RUBY_VERSION =~ /^1.8/
|
2011-12-13 02:51:06 +00:00
|
|
|
require 'process_shared/define_singleton_method'
|
|
|
|
|
|
|
|
module ProcessShared
|
|
|
|
module PSem
|
|
|
|
extend DefineSingletonMethod
|
|
|
|
end
|
|
|
|
|
|
|
|
module RT
|
|
|
|
extend DefineSingletonMethod
|
|
|
|
end
|
|
|
|
|
|
|
|
module LibC
|
|
|
|
extend DefineSingletonMethod
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2011-12-12 03:39:55 +00:00
|
|
|
require 'process_shared/semaphore'
|
|
|
|
require 'process_shared/bounded_semaphore'
|
|
|
|
require 'process_shared/mutex'
|
|
|
|
require 'process_shared/shared_memory'
|
2011-12-13 02:51:06 +00:00
|
|
|
|