邱博亞
cd0031e36e
Fix bug.
2024-03-03 11:46:16 +08:00
chiu
4cd4344f13
更新「lib/process_shared/posix/libc.rb」
...
fix File.exists?
2023-04-08 14:47:01 +00:00
邱博亞
857bb2ae85
fix error
2023-04-08 15:22:54 +08:00
Patrick Mahoney
9ef0acb093
Version bump to 0.2.1
2015-06-10 08:32:09 -05:00
Patrick Mahoney
1803466eae
Add version range for ci_reporter_minitest.
2015-06-10 08:30:20 -05:00
Patrick Mahoney
2fe552335a
Add example to README.
2015-06-10 08:28:09 -05:00
Patrick Mahoney
751a8d0305
Version bump to 0.2.1b
2015-06-09 22:20:41 -05:00
Patrick Mahoney
ba45f856ba
Update ci_reporter => ci_reporter_minitest.
2015-06-09 22:17:44 -05:00
Patrick Mahoney
1a05bcd924
Find 'helper.so' even when it's in $GEM_HOME/extensions.
...
See https://github.com/pmahoney/process_shared/issues/4#issuecomment-106777066
2015-06-09 21:54:21 -05:00
Patrick Mahoney
25f9bb2cae
Remove Ruby 1.8 special case; reorder requires to suppress warning.
2013-12-31 20:17:15 -06:00
Patrick Mahoney
88dcebf5f7
Fix typo in comment.
2013-12-31 18:25:25 -06:00
Patrick Mahoney
3acc7afc34
Delete obsolete, unused files.
2013-12-31 18:21:04 -06:00
Patrick Mahoney
af27697623
Version bump to 0.2.1a
2013-12-31 10:06:53 -06:00
Patrick Mahoney
30076ac4bc
Version bump to 0.2.0
2013-12-31 10:06:40 -06:00
Patrick Mahoney
647ae0983a
Drop support for 1.8.7, ree.
2013-12-31 09:53:22 -06:00
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