io-event 1.14.1 → 1.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/ext/io/event/worker_pool.c +13 -11
- data/lib/io/event/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0deb2b3991062957f5767ac97e9abf7fe72b20e2264d08fd81293c407f92024f
|
|
4
|
+
data.tar.gz: 93b9e08ea55f39b5b983b8627b91720047154a2f778d86fea620da54d5e3173c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2e58ec44e475bad561ddd53797a1552037fc92a4602dd89f6af92148130d4486d7dca47b6ae09bf11373be7e393a1baea835ae29e3ea388da4d4189b1d87be47
|
|
7
|
+
data.tar.gz: 9040993cc15180b65f142a28529d6672dceb88de0ae887ca9f1815bf0e11d4fe7929a3295ec50110b6c7faab83728cf36bf5c51d564b377eca4af40b756e9140
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/ext/io/event/worker_pool.c
CHANGED
|
@@ -213,18 +213,20 @@ static VALUE worker_thread_func(void *_worker) {
|
|
|
213
213
|
|
|
214
214
|
// Create a new worker thread
|
|
215
215
|
static int create_worker_thread(VALUE self, struct IO_Event_WorkerPool *pool) {
|
|
216
|
-
if (pool->current_worker_count >= pool->maximum_worker_count) {
|
|
217
|
-
return -1;
|
|
218
|
-
}
|
|
219
|
-
|
|
216
|
+
if (pool->current_worker_count >= pool->maximum_worker_count) {
|
|
217
|
+
return -1;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
220
|
struct IO_Event_WorkerPool_Worker *worker = malloc(sizeof(struct IO_Event_WorkerPool_Worker));
|
|
221
|
-
if (!worker) {
|
|
222
|
-
return -1;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
worker->
|
|
226
|
-
worker->
|
|
227
|
-
|
|
221
|
+
if (!worker) {
|
|
222
|
+
return -1;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
worker->pool = pool;
|
|
226
|
+
worker->interrupted = false;
|
|
227
|
+
worker->current_blocking_operation = NULL;
|
|
228
|
+
worker->next = pool->workers;
|
|
229
|
+
|
|
228
230
|
RB_OBJ_WRITE(self, &worker->thread, rb_thread_create(worker_thread_func, worker));
|
|
229
231
|
if (NIL_P(worker->thread)) {
|
|
230
232
|
free(worker);
|
data/lib/io/event/version.rb
CHANGED
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
|
Binary file
|