polyphony 0.73.1 → 0.74
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +13 -10
- data/.github/workflows/test_io_uring.yml +32 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +10 -7
- data/bin/pdbg +0 -0
- data/bin/polyphony-debug +0 -0
- data/bin/stress.rb +0 -0
- data/bin/test +0 -0
- data/ext/polyphony/backend_common.c +75 -11
- data/ext/polyphony/backend_common.h +7 -0
- data/ext/polyphony/backend_io_uring.c +226 -106
- data/ext/polyphony/backend_io_uring_context.c +1 -0
- data/ext/polyphony/backend_io_uring_context.h +2 -1
- data/ext/polyphony/backend_libev.c +7 -9
- data/ext/polyphony/event.c +5 -2
- data/ext/polyphony/polyphony.c +10 -1
- data/ext/polyphony/polyphony.h +2 -0
- data/ext/polyphony/queue.c +10 -5
- data/ext/polyphony/runqueue_ring_buffer.c +3 -1
- data/ext/polyphony/socket_extensions.c +5 -2
- data/lib/polyphony/extensions/fiber.rb +58 -0
- data/lib/polyphony/extensions/socket.rb +17 -5
- data/lib/polyphony/extensions/thread.rb +9 -3
- data/lib/polyphony/version.rb +1 -1
- data/lib/polyphony.rb +2 -1
- data/test/test_backend.rb +3 -5
- data/test/test_global_api.rb +10 -14
- data/test/test_io.rb +2 -2
- data/test/test_kernel.rb +2 -2
- data/test/test_socket.rb +35 -2
- data/test/test_thread_pool.rb +1 -1
- data/test/test_throttler.rb +3 -3
- data/test/test_timer.rb +1 -1
- metadata +8 -7
data/test/test_throttler.rb
CHANGED
@@ -10,7 +10,7 @@ class ThrottlerTest < MiniTest::Test
|
|
10
10
|
f = spin { loop { t.process { buffer << 1 } } }
|
11
11
|
sleep 0.2
|
12
12
|
f.stop
|
13
|
-
assert_in_range 1..4, buffer.size
|
13
|
+
assert_in_range 1..4, buffer.size if IS_LINUX
|
14
14
|
ensure
|
15
15
|
t.stop
|
16
16
|
end
|
@@ -23,7 +23,7 @@ class ThrottlerTest < MiniTest::Test
|
|
23
23
|
end
|
24
24
|
sleep 0.25
|
25
25
|
f.stop
|
26
|
-
assert_in_range
|
26
|
+
assert_in_range 4..6, buffer.size if IS_LINUX
|
27
27
|
ensure
|
28
28
|
t.stop
|
29
29
|
end
|
@@ -34,7 +34,7 @@ class ThrottlerTest < MiniTest::Test
|
|
34
34
|
f = spin { loop { t.process { buffer << 1 } } }
|
35
35
|
sleep 0.02
|
36
36
|
f.stop
|
37
|
-
assert_in_range 2..4, buffer.size
|
37
|
+
assert_in_range 2..4, buffer.size if IS_LINUX
|
38
38
|
ensure
|
39
39
|
t.stop
|
40
40
|
end
|
data/test/test_timer.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: polyphony
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: '0.74'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sharon Rosner
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake-compiler
|
@@ -136,7 +136,7 @@ dependencies:
|
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: 1.1.4
|
139
|
-
description:
|
139
|
+
description:
|
140
140
|
email: sharon@noteflakes.com
|
141
141
|
executables: []
|
142
142
|
extensions:
|
@@ -146,6 +146,7 @@ extra_rdoc_files:
|
|
146
146
|
files:
|
147
147
|
- ".github/FUNDING.yml"
|
148
148
|
- ".github/workflows/test.yml"
|
149
|
+
- ".github/workflows/test_io_uring.yml"
|
149
150
|
- ".gitignore"
|
150
151
|
- ".gitmodules"
|
151
152
|
- ".rubocop.yml"
|
@@ -411,7 +412,7 @@ metadata:
|
|
411
412
|
documentation_uri: https://digital-fabric.github.io/polyphony/
|
412
413
|
homepage_uri: https://digital-fabric.github.io/polyphony/
|
413
414
|
changelog_uri: https://github.com/digital-fabric/polyphony/blob/master/CHANGELOG.md
|
414
|
-
post_install_message:
|
415
|
+
post_install_message:
|
415
416
|
rdoc_options:
|
416
417
|
- "--title"
|
417
418
|
- polyphony
|
@@ -430,8 +431,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
430
431
|
- !ruby/object:Gem::Version
|
431
432
|
version: '0'
|
432
433
|
requirements: []
|
433
|
-
rubygems_version: 3.
|
434
|
-
signing_key:
|
434
|
+
rubygems_version: 3.3.3
|
435
|
+
signing_key:
|
435
436
|
specification_version: 4
|
436
437
|
summary: Fine grained concurrency for Ruby
|
437
438
|
test_files: []
|