Commit Graph

28 Commits

Author SHA1 Message Date
Patrick Mahoney 15fe2e5057 Refactor class hierarchy, implementation selection details. 2012-02-07 23:06:17 -06:00
Patrick Mahoney 60b1cd8e53 Add (again) default semaphore value; all tests passing on Linux. 2012-02-01 21:43:53 -06:00
Patrick Mahoney 842ff179ec Remove no-longer-used libpsem and related code and tests. 2012-02-01 21:42:34 -06:00
Patrick Mahoney 8158666e90 Add posix-y compatibility extension class over Mach::Semaphore. 2012-02-01 21:36:15 -06:00
Patrick Mahoney ffe1298731 Factor common TimeSpec methods into module. 2012-02-01 20:33:31 -06:00
Patrick Mahoney 71aa552213 Move with_self open-with-block helper to common module from posix semaphore implementation. 2012-02-01 19:44:24 -06:00
Patrick Mahoney 6f63c67c6e Split SharedMemory into module and platform dependent bits. Make SharedArray extend platform dependent class. 2012-02-01 19:38:53 -06:00
Patrick Mahoney db108a1913 Delete BoundedSemaphore. 2012-02-01 19:24:07 -06:00
Patrick Mahoney bb2bb3c5d9 Make BinarySemaphore delegate to platform-dependent semaphore. 2012-02-01 19:23:45 -06:00
Patrick Mahoney ae67dc6889 Add Ruby/FFI wrapper around POSIX shared memory and semaphore (obviating libpsem). 2012-01-29 22:54:22 -06:00
Patrick Mahoney 893c457b35 Make ffi type to getter/setter method search more robust to work in 1.8 and 1.9. 2011-12-21 08:14:20 -06:00
Patrick Mahoney a21071b590 Fix object writing and reading for Ruby 1.8 IO differences. 2011-12-21 07:58:55 -06:00
Patrick Mahoney edc927709a Avoid possible race in ConditionVariable where new processes begin waiting while #broadcast is running. 2011-12-20 22:12:25 -06:00
Patrick Mahoney cc663a8d7f Add SharedMemory#write_object and #read_object; add SharedMemoryIO helper. 2011-12-20 22:09:38 -06:00
Patrick Mahoney 611c41f939 Add SharedArray extension of SharedMemory (with Enumerable mixin). 2011-12-17 21:51:22 -06:00
Patrick Mahoney ea063678cc Update SharedMemory initializer to accept type and size. 2011-12-17 21:50:39 -06:00
Patrick Mahoney d65979cc2e Initial attempt at ConditionVariable implementation. 2011-12-17 11:05:39 -06:00
Patrick Mahoney a1f881f59c Add finalizer to SharedMemory. 2011-12-17 10:31:22 -06:00
Patrick Mahoney 7bdae6482f Add finalizer to SharedMemory. 2011-12-17 10:31:09 -06:00
Patrick Mahoney 7d71937bf7 Add BinarySemaphore (error checking semaphore with max value 1). 2011-12-17 10:15:22 -06:00
Patrick Mahoney 0f00a7d444 Add minor explanatory comment. 2011-12-17 10:07:24 -06:00
Patrick Mahoney 7230e9f2c9 Add Semaphore#try_wait. Fix libpsem to convert relative timeout to absolute timeout. 2011-12-17 09:58:10 -06:00
Patrick Mahoney f65ae434e4 Clear the error pointer so that it may be reused. 2011-12-17 07:53:15 -06:00
Patrick Mahoney 514df0f49f Change from BoundedSemaphore to Semaphore in Mutex implementation so it will work on Mac OS X (and other platforms with out sem_getvalue(). 2011-12-13 22:03:36 -06:00
Patrick Mahoney d102786090 Expand documentation; fix markup. 2011-12-12 22:02:00 -06:00
Patrick Mahoney 4f775ac5ca Add backwards compatibility define_singleton_method for Ruby 1.8. 2011-12-12 20:51:06 -06:00
Patrick Mahoney b4b869e074 Check double-lock in Mutex. Update book keeping on unlock. 2011-12-11 22:57:57 -06:00
Patrick Mahoney cf45ab9891 Initial commit. 2011-12-11 21:39:55 -06:00