pmahoney
fb0da5ee8c
Merge pull request #12 from ms-ati/add-semaphore-to-mtx
...
Add Semaphore#to_mtx for a faster but unchecked mutex-like facade
2013-12-31 06:54:33 -08:00
Patrick Mahoney
983e266b13
Adjust whitespace.
2013-12-31 08:49:33 -06:00
Patrick Mahoney
8e99e481a4
Add badges to README (rubygems, travis, gemnasium, codeclimate).
2013-12-31 08:47:46 -06:00
Patrick Mahoney
36405307fd
Move README to markdown; add yardopts to match.
2013-12-30 22:59:51 -06:00
pmahoney
e1a4dec198
Merge pull request #9 from ms-ati/add-rvm-files
...
Add RVM workflow files `.ruby-version` and `.ruby-gemset`
2013-12-30 20:11:54 -08:00
pmahoney
d3e27ad20b
Merge pull request #11 from ms-ati/add-workaround-for-rubygems-issue-763-on-travis
...
Add workaround for rubygems/rubygems#763
2013-12-30 20:02:37 -08:00
Marc Siegel
ef3d6958ea
Slight refactor to share common code path and clarify behavior
2013-12-30 13:22:07 -05:00
Marc Siegel
49773b66f4
Add Semaphore#to_mtx returning an unchecked mutex-like facade
...
Because there is a very significant performance hit for using the
mutex implementation, which correctly checks ownership, this
implementation formalizes treating a raw semaphore as a faster,
unchecked implementation of mutex.
2013-12-30 13:20:29 -05:00
Marc Siegel
11a6a2e9fe
Add workaround for rubygems/rubygems#763
...
This defect in Rubygems 2.2.0 breaks all 1.8.x builds on Travis CI.
Workaround until the fix is deployed is to pin builds to latest 2.1.x
build of Rubygems.
2013-12-30 11:05:38 -05:00
Marc Siegel
dca51dd6d3
Add Ruby 2.1.0 to Travis CI config
2013-12-30 11:04:25 -05:00
Marc Siegel
e177cf577a
Add RVM workflow files `.ruby-version` and `.ruby-gemset`
...
These files make RVM automatically change to the ruby version and
gemset selected, conveniently automating a part of the typical
development workflow when switching between projects.
See https://rvm.io/workflow/projects
2013-12-30 10:47:03 -05:00
Patrick Mahoney
b0114ee389
Version bump to 0.1.11a
2013-12-27 16:51:31 -06:00
Patrick Mahoney
158120755d
Version bump to 0.1.10
2013-12-27 16:51:20 -06:00
Patrick Mahoney
a30cdcacc5
Merge branch 'master' of github.com:pmahoney/process_shared
2013-12-27 16:50:57 -06:00
pmahoney
1b1fdbe287
Merge pull request #8 from ms-ati/fix-cond-var-signal-when-no-waiters
...
Fix ConditionVariable#signal to only post if semaphore has waiters
2013-12-27 14:49:04 -08:00
pmahoney
8232b61697
Merge pull request #7 from ms-ati/fix-shmio-read-encoding
...
Fix SharedMemoryIO#read for binary data on Ruby 1.9+
2013-12-27 14:48:09 -08:00
Marc Siegel
14fa8662f5
Fix test on 1.9.x by adding magic file encoding comment
2013-12-27 15:21:01 -05:00
Marc Siegel
4518e6fdad
Fix ConditionVariable#signal to only post if semaphore has waiters
...
This fixes a bug where calls to #signal would end up "over-posting"
the semaphore, causing subsequent waits to return immediately until
the semaphore value is back down to zero.
2013-12-27 15:15:07 -05:00
Marc Siegel
41b6777638
Fix SharedMemoryIO#read for binary data on Ruby 1.9+
2013-12-27 13:38:23 -05:00
Patrick Mahoney
6434128a26
Version bump to 0.1.10a
2013-12-27 11:20:02 -06:00
Patrick Mahoney
3ac167d49a
Version bump to 0.1.9
2013-12-27 11:19:53 -06:00
pmahoney
dddf0be4ef
Merge pull request #6 from ms-ati/allow-mutex-lock-from-different-thread
...
Fix Mutex to allow lock from different Ruby (green) thread in process
2013-12-27 09:18:39 -08:00
Marc Siegel
aeadb74ef6
Fix Mutex to allow lock from different Ruby (green) thread in process
2013-12-27 10:46:50 -05:00
Patrick Mahoney
3e4fa34694
Version bump to 0.1.9a
2013-12-26 22:39:44 -06:00
Patrick Mahoney
77ba16460e
Version bump to 0.1.8
2013-12-26 22:39:33 -06:00
pmahoney
c663e81774
Merge pull request #5 from ms-ati/allow-ruby-threads-to-continue
...
Fix: Allow ruby green threads to continue while waiting on semaphore
2013-12-26 20:37:26 -08:00
Marc Siegel
90a9f37da4
Disable test on 1.8.7, since workaround is to allow blocking on that version
2013-12-26 13:51:03 -05:00
Marc Siegel
d2f8af03eb
Workaround apparent bug in 1.8.7/REE: block all during sem_timedwait
2013-12-26 13:48:29 -05:00
Marc Siegel
d3d51fef91
Moved tests to just semaphore, and fixed thread joining
2013-12-26 13:28:40 -05:00
Marc Siegel
e2e70591a1
On posix, allow ruby threads to continue during wait / try_wait
2013-12-26 12:47:09 -05:00
Marc Siegel
50c096d84c
On mach, allow other ruby threads to continue during semaphore try_wait
2013-12-26 12:45:04 -05:00
Marc Siegel
d1644104c8
On mach, allow other ruby green threads to continue during semaphore wait
2013-12-26 12:27:36 -05:00
Patrick Mahoney
4906f5acf5
Add ruby 2.0.0 to travis config.
2013-02-21 13:09:08 -06:00
Patrick Mahoney
5abcdb378c
Add travis config.
2013-02-21 12:59:04 -06:00
Patrick Mahoney
862b1b3b08
Version bump to 0.1.8a
2013-02-19 13:58:10 -06:00
Patrick Mahoney
e106d38b86
Version bump to 0.1.7
2013-02-19 13:58:02 -06:00
Patrick Mahoney
a93775fe24
Don't include compiled extension in gem; configure extconf.rb to compile and install into the correct location. Fixes #4 .
2013-02-19 13:56:53 -06:00
Patrick Mahoney
5aba20cdf7
Partial MonitorMixin implementation.
2012-03-29 23:00:52 -05:00
Patrick Mahoney
80284301a7
Use semaphore#synchronize convenience method internally.
2012-03-29 22:34:16 -05:00
Patrick Mahoney
1eff930480
Initial attempt at Monitor class.
2012-03-29 22:33:03 -05:00
Patrick Mahoney
d8eba3cb25
Add target dir to .gitignore.
2012-03-24 13:35:08 -05:00
Patrick Mahoney
0dc83a72aa
Add rake task to generate flog report.
2012-03-24 13:27:42 -05:00
Patrick Mahoney
e6ff2ba8d7
Sort dev dependencies list in gemspec.
2012-03-24 13:07:00 -05:00
Patrick Mahoney
b6a6c2f241
Rdoc formatting.
2012-03-04 10:29:43 -06:00
Patrick Mahoney
b7d26ebd12
Rdoc formatting.
2012-03-04 10:28:23 -06:00
Patrick Mahoney
884a1fa6c3
Update README for new Mach stuff.
2012-03-04 10:26:58 -06:00
Patrick Mahoney
a0b99f840f
Add dev dependency on ci_reporter for test reports.
2012-02-26 13:28:37 -06:00
Patrick Mahoney
d012a11237
Add LockBehavior to semaphore spec.
2012-02-23 21:37:19 -06:00
Patrick Mahoney
5dc3c7299e
Move common lock test behavior out of mutex spec into module.
2012-02-23 21:33:38 -06:00
Patrick Mahoney
2af2cdc852
Version bump to 0.1.7a
2012-02-09 08:15:03 -06:00