io-event 0.3.3 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/IO_Event.bundle +0 -0
- data/ext/event.o +0 -0
- data/ext/interrupt.o +0 -0
- data/ext/io/event/selector/epoll.c +2 -2
- data/ext/io/event/selector/kqueue.c +2 -2
- data/ext/io/event/selector/uring.c +2 -2
- data/ext/kqueue.o +0 -0
- data/ext/selector.o +0 -0
- data/lib/io/event/selector/select.rb +2 -2
- data/lib/io/event/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 202f6fedc64c46fd6d6ecfb8d8ca9a8e5f6e41c1c46182bb5b62ed03116aeb07
|
4
|
+
data.tar.gz: a1d8fe1987852db3c4c6187c771783c98c1c661536690b74a499a951273da39f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1d276fb8062dca9c05ed078f9ad91aac24e26d1a835ccee875d7ebe4e98e0bf93a236c0b97cf876aaccb4b40b52ffc4669d41c8e36215430e9d74c887c753a8
|
7
|
+
data.tar.gz: 3765cd83a4e178e25fb6f9f24a6b4f4be014a3120465c380afe9daef5f3fdbbc63ac3db336ddcf986eab3adb49b5b85aa20b460916b3f4f9a2d140424a5ec843
|
data/ext/IO_Event.bundle
CHANGED
Binary file
|
data/ext/event.o
CHANGED
Binary file
|
data/ext/interrupt.o
CHANGED
Binary file
|
@@ -365,7 +365,7 @@ VALUE io_read_loop(VALUE _arguments) {
|
|
365
365
|
|
366
366
|
void *base;
|
367
367
|
size_t size;
|
368
|
-
|
368
|
+
rb_io_buffer_get_bytes_for_writing(arguments->buffer, &base, &size);
|
369
369
|
|
370
370
|
size_t offset = 0;
|
371
371
|
size_t length = arguments->length;
|
@@ -437,7 +437,7 @@ VALUE io_write_loop(VALUE _arguments) {
|
|
437
437
|
|
438
438
|
const void *base;
|
439
439
|
size_t size;
|
440
|
-
|
440
|
+
rb_io_buffer_get_bytes_for_reading(arguments->buffer, &base, &size);
|
441
441
|
|
442
442
|
size_t offset = 0;
|
443
443
|
size_t length = arguments->length;
|
@@ -396,7 +396,7 @@ VALUE io_read_loop(VALUE _arguments) {
|
|
396
396
|
|
397
397
|
void *base;
|
398
398
|
size_t size;
|
399
|
-
|
399
|
+
rb_io_buffer_get_bytes_for_writing(arguments->buffer, &base, &size);
|
400
400
|
|
401
401
|
size_t offset = 0;
|
402
402
|
size_t length = arguments->length;
|
@@ -478,7 +478,7 @@ VALUE io_write_loop(VALUE _arguments) {
|
|
478
478
|
|
479
479
|
const void *base;
|
480
480
|
size_t size;
|
481
|
-
|
481
|
+
rb_io_buffer_get_bytes_for_reading(arguments->buffer, &base, &size);
|
482
482
|
|
483
483
|
size_t offset = 0;
|
484
484
|
size_t length = arguments->length;
|
@@ -394,7 +394,7 @@ VALUE IO_Event_Selector_URing_io_read(VALUE self, VALUE fiber, VALUE io, VALUE b
|
|
394
394
|
|
395
395
|
void *base;
|
396
396
|
size_t size;
|
397
|
-
|
397
|
+
rb_io_buffer_get_bytes_for_writing(buffer, &base, &size);
|
398
398
|
|
399
399
|
size_t offset = 0;
|
400
400
|
size_t length = NUM2SIZET(_length);
|
@@ -445,7 +445,7 @@ VALUE IO_Event_Selector_URing_io_write(VALUE self, VALUE fiber, VALUE io, VALUE
|
|
445
445
|
|
446
446
|
const void *base;
|
447
447
|
size_t size;
|
448
|
-
|
448
|
+
rb_io_buffer_get_bytes_for_reading(buffer, &base, &size);
|
449
449
|
|
450
450
|
size_t offset = 0;
|
451
451
|
size_t length = NUM2SIZET(_length);
|
data/ext/kqueue.o
CHANGED
Binary file
|
data/ext/selector.o
CHANGED
Binary file
|
@@ -158,7 +158,7 @@ module IO::Event
|
|
158
158
|
else
|
159
159
|
break unless result
|
160
160
|
|
161
|
-
buffer.
|
161
|
+
buffer.set_string(result, offset)
|
162
162
|
|
163
163
|
size = result.bytesize
|
164
164
|
offset += size
|
@@ -176,7 +176,7 @@ module IO::Event
|
|
176
176
|
while true
|
177
177
|
maximum_size = buffer.size - offset
|
178
178
|
|
179
|
-
chunk = buffer.
|
179
|
+
chunk = buffer.get_string(offset, maximum_size)
|
180
180
|
case result = blocking{io.write_nonblock(chunk, exception: false)}
|
181
181
|
when :wait_readable
|
182
182
|
if length > 0
|
data/lib/io/event/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: io-event
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bake
|
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
120
|
- !ruby/object:Gem::Version
|
121
121
|
version: '0'
|
122
122
|
requirements: []
|
123
|
-
rubygems_version: 3.3.0
|
123
|
+
rubygems_version: 3.3.0
|
124
124
|
signing_key:
|
125
125
|
specification_version: 4
|
126
126
|
summary: An event loop.
|