event 0.9.2 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/event/selector/epoll.c +4 -10
- data/ext/event/selector/kqueue.c +3 -7
- data/ext/event/selector/selector.c +1 -1
- data/ext/event/selector/selector.h +1 -1
- data/ext/event/selector/uring.c +4 -10
- data/lib/event/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04d628a035bccdf1ca709e053665ad377edddd1a27225c95f34c93d214b660bd
|
4
|
+
data.tar.gz: 2ff2f56bb7e418d6cb0a999524c0aba6fb68db0b91d4751ab6d1a4013ad1aea3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08cc9858ac07c66cf211e1fc8763e06a64856440771793d214ceafff6672fbc4ad20869cc900b2d3c234bacddc772c0bee402bdad581bbf651cee34a2c320e6e'
|
7
|
+
data.tar.gz: bacb375644648693379276cc9b35136ef4498d69d2a9da99e6e146590ed3a50e7bfafa00cb3ebd298e5eb15ac3feb14d5f6042deacf7f4e5612c6a347bc6bd1f
|
data/ext/event/selector/epoll.c
CHANGED
@@ -117,9 +117,7 @@ VALUE Event_Selector_EPoll_transfer(VALUE self)
|
|
117
117
|
struct Event_Selector_EPoll *data = NULL;
|
118
118
|
TypedData_Get_Struct(self, struct Event_Selector_EPoll, &Event_Selector_EPoll_Type, data);
|
119
119
|
|
120
|
-
Event_Selector_fiber_transfer(data->backend.loop, 0, NULL);
|
121
|
-
|
122
|
-
return Qnil;
|
120
|
+
return Event_Selector_fiber_transfer(data->backend.loop, 0, NULL);
|
123
121
|
}
|
124
122
|
|
125
123
|
VALUE Event_Selector_EPoll_resume(int argc, VALUE *argv, VALUE self)
|
@@ -127,9 +125,7 @@ VALUE Event_Selector_EPoll_resume(int argc, VALUE *argv, VALUE self)
|
|
127
125
|
struct Event_Selector_EPoll *data = NULL;
|
128
126
|
TypedData_Get_Struct(self, struct Event_Selector_EPoll, &Event_Selector_EPoll_Type, data);
|
129
127
|
|
130
|
-
Event_Selector_resume(&data->backend, argc, argv);
|
131
|
-
|
132
|
-
return Qnil;
|
128
|
+
return Event_Selector_resume(&data->backend, argc, argv);
|
133
129
|
}
|
134
130
|
|
135
131
|
VALUE Event_Selector_EPoll_yield(VALUE self)
|
@@ -137,9 +133,7 @@ VALUE Event_Selector_EPoll_yield(VALUE self)
|
|
137
133
|
struct Event_Selector_EPoll *data = NULL;
|
138
134
|
TypedData_Get_Struct(self, struct Event_Selector_EPoll, &Event_Selector_EPoll_Type, data);
|
139
135
|
|
140
|
-
Event_Selector_yield(&data->backend);
|
141
|
-
|
142
|
-
return Qnil;
|
136
|
+
return Event_Selector_yield(&data->backend);
|
143
137
|
}
|
144
138
|
|
145
139
|
VALUE Event_Selector_EPoll_push(VALUE self, VALUE fiber)
|
@@ -157,7 +151,7 @@ VALUE Event_Selector_EPoll_raise(int argc, VALUE *argv, VALUE self)
|
|
157
151
|
struct Event_Selector_EPoll *data = NULL;
|
158
152
|
TypedData_Get_Struct(self, struct Event_Selector_EPoll, &Event_Selector_EPoll_Type, data);
|
159
153
|
|
160
|
-
return
|
154
|
+
return Event_Selector_raise(&data->backend, argc, argv);
|
161
155
|
}
|
162
156
|
|
163
157
|
VALUE Event_Selector_EPoll_ready_p(VALUE self) {
|
data/ext/event/selector/kqueue.c
CHANGED
@@ -117,9 +117,7 @@ VALUE Event_Selector_KQueue_transfer(VALUE self)
|
|
117
117
|
struct Event_Selector_KQueue *data = NULL;
|
118
118
|
TypedData_Get_Struct(self, struct Event_Selector_KQueue, &Event_Selector_KQueue_Type, data);
|
119
119
|
|
120
|
-
Event_Selector_fiber_transfer(data->backend.loop, 0, NULL);
|
121
|
-
|
122
|
-
return Qnil;
|
120
|
+
return Event_Selector_fiber_transfer(data->backend.loop, 0, NULL);
|
123
121
|
}
|
124
122
|
|
125
123
|
VALUE Event_Selector_KQueue_resume(int argc, VALUE *argv, VALUE self)
|
@@ -135,9 +133,7 @@ VALUE Event_Selector_KQueue_yield(VALUE self)
|
|
135
133
|
struct Event_Selector_KQueue *data = NULL;
|
136
134
|
TypedData_Get_Struct(self, struct Event_Selector_KQueue, &Event_Selector_KQueue_Type, data);
|
137
135
|
|
138
|
-
Event_Selector_yield(&data->backend);
|
139
|
-
|
140
|
-
return Qnil;
|
136
|
+
return Event_Selector_yield(&data->backend);
|
141
137
|
}
|
142
138
|
|
143
139
|
VALUE Event_Selector_KQueue_push(VALUE self, VALUE fiber)
|
@@ -155,7 +151,7 @@ VALUE Event_Selector_KQueue_raise(int argc, VALUE *argv, VALUE self)
|
|
155
151
|
struct Event_Selector_KQueue *data = NULL;
|
156
152
|
TypedData_Get_Struct(self, struct Event_Selector_KQueue, &Event_Selector_KQueue_Type, data);
|
157
153
|
|
158
|
-
return
|
154
|
+
return Event_Selector_raise(&data->backend, argc, argv);
|
159
155
|
}
|
160
156
|
|
161
157
|
VALUE Event_Selector_KQueue_ready_p(VALUE self) {
|
@@ -197,7 +197,7 @@ static VALUE wait_and_raise(VALUE _arguments) {
|
|
197
197
|
return Event_Selector_fiber_raise(fiber, argc, argv);
|
198
198
|
}
|
199
199
|
|
200
|
-
VALUE
|
200
|
+
VALUE Event_Selector_raise(struct Event_Selector *backend, int argc, VALUE *argv)
|
201
201
|
{
|
202
202
|
rb_check_arity(argc, 2, UNLIMITED_ARGUMENTS);
|
203
203
|
|
@@ -105,7 +105,7 @@ void Event_Selector_mark(struct Event_Selector *backend) {
|
|
105
105
|
}
|
106
106
|
|
107
107
|
VALUE Event_Selector_resume(struct Event_Selector *backend, int argc, VALUE *argv);
|
108
|
-
VALUE
|
108
|
+
VALUE Event_Selector_raise(struct Event_Selector *backend, int argc, VALUE *argv);
|
109
109
|
|
110
110
|
static inline
|
111
111
|
VALUE Event_Selector_yield(struct Event_Selector *backend)
|
data/ext/event/selector/uring.c
CHANGED
@@ -120,9 +120,7 @@ VALUE Event_Selector_URing_transfer(VALUE self)
|
|
120
120
|
struct Event_Selector_URing *data = NULL;
|
121
121
|
TypedData_Get_Struct(self, struct Event_Selector_URing, &Event_Selector_URing_Type, data);
|
122
122
|
|
123
|
-
Event_Selector_fiber_transfer(data->backend.loop, 0, NULL);
|
124
|
-
|
125
|
-
return Qnil;
|
123
|
+
return Event_Selector_fiber_transfer(data->backend.loop, 0, NULL);
|
126
124
|
}
|
127
125
|
|
128
126
|
VALUE Event_Selector_URing_resume(int argc, VALUE *argv, VALUE self)
|
@@ -130,9 +128,7 @@ VALUE Event_Selector_URing_resume(int argc, VALUE *argv, VALUE self)
|
|
130
128
|
struct Event_Selector_URing *data = NULL;
|
131
129
|
TypedData_Get_Struct(self, struct Event_Selector_URing, &Event_Selector_URing_Type, data);
|
132
130
|
|
133
|
-
Event_Selector_resume(&data->backend, argc, argv);
|
134
|
-
|
135
|
-
return Qnil;
|
131
|
+
return Event_Selector_resume(&data->backend, argc, argv);
|
136
132
|
}
|
137
133
|
|
138
134
|
VALUE Event_Selector_URing_yield(VALUE self)
|
@@ -140,9 +136,7 @@ VALUE Event_Selector_URing_yield(VALUE self)
|
|
140
136
|
struct Event_Selector_URing *data = NULL;
|
141
137
|
TypedData_Get_Struct(self, struct Event_Selector_URing, &Event_Selector_URing_Type, data);
|
142
138
|
|
143
|
-
Event_Selector_yield(&data->backend);
|
144
|
-
|
145
|
-
return Qnil;
|
139
|
+
return Event_Selector_yield(&data->backend);
|
146
140
|
}
|
147
141
|
|
148
142
|
VALUE Event_Selector_URing_push(VALUE self, VALUE fiber)
|
@@ -160,7 +154,7 @@ VALUE Event_Selector_URing_raise(int argc, VALUE *argv, VALUE self)
|
|
160
154
|
struct Event_Selector_URing *data = NULL;
|
161
155
|
TypedData_Get_Struct(self, struct Event_Selector_URing, &Event_Selector_URing_Type, data);
|
162
156
|
|
163
|
-
return
|
157
|
+
return Event_Selector_raise(&data->backend, argc, argv);
|
164
158
|
}
|
165
159
|
|
166
160
|
VALUE Event_Selector_URing_ready_p(VALUE self) {
|
data/lib/event/version.rb
CHANGED