ilios 0.4.10 → 0.4.11
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
- data/ext/ilios/future.c +2 -1
- data/ext/ilios/ilios.c +2 -2
- data/ext/ilios/ilios.h +1 -1
- data/lib/ilios/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: 0def2f85dbab76062cb552bdf5263988913ea5e7bd7ecafd2681e81d91dcf5f6
|
|
4
|
+
data.tar.gz: 9c6b8696ae30614e09709ab2ba7706964c11b382d4b09361e9518d7a25d4891d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 68e58cdf0fb8c656428438f7b772cd9bced047f17aa711b593db533ea6a13393d831b1370b63bec6a7b5801f90ada694f10a553d3744cc05dbb9dd1695c46913
|
|
7
|
+
data.tar.gz: 5c483e7ef9ec943f7782fe20b8aa452255a21f18bd925fdcf5be9b8c1605443bf408351dac220376bfc2aa44d43fa377abcca2c173d72a77272bc30de30bf145
|
data/ext/ilios/future.c
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#include "ilios.h"
|
|
2
2
|
|
|
3
3
|
#define THREAD_MAX 5
|
|
4
|
+
#define QUEUE_MAX 100
|
|
4
5
|
|
|
5
6
|
typedef struct
|
|
6
7
|
{
|
|
@@ -31,7 +32,7 @@ const rb_data_type_t cassandra_future_data_type = {
|
|
|
31
32
|
|
|
32
33
|
static void future_thread_pool_init(future_thread_pool *pool)
|
|
33
34
|
{
|
|
34
|
-
pool->queue = rb_funcall(
|
|
35
|
+
pool->queue = rb_funcall(cSizedQueue, id_new, 1, INT2NUM(QUEUE_MAX));
|
|
35
36
|
rb_gc_register_mark_object(pool->queue);
|
|
36
37
|
}
|
|
37
38
|
|
data/ext/ilios/ilios.c
CHANGED
|
@@ -11,7 +11,7 @@ VALUE eConnectError;
|
|
|
11
11
|
VALUE eExecutionError;
|
|
12
12
|
VALUE eStatementError;
|
|
13
13
|
|
|
14
|
-
VALUE
|
|
14
|
+
VALUE cSizedQueue;
|
|
15
15
|
|
|
16
16
|
VALUE id_to_time;
|
|
17
17
|
VALUE id_new;
|
|
@@ -85,7 +85,7 @@ void Init_ilios(void)
|
|
|
85
85
|
eExecutionError = rb_define_class_under(mCassandra, "ExecutionError", rb_eStandardError);
|
|
86
86
|
eStatementError = rb_define_class_under(mCassandra, "StatementError", rb_eStandardError);
|
|
87
87
|
|
|
88
|
-
|
|
88
|
+
cSizedQueue = rb_const_get(rb_cThread, rb_intern("SizedQueue"));
|
|
89
89
|
|
|
90
90
|
id_to_time = rb_intern("to_time");
|
|
91
91
|
id_new = rb_intern("new");
|
data/ext/ilios/ilios.h
CHANGED
data/lib/ilios/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ilios
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Watson
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-
|
|
11
|
+
date: 2024-03-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: mini_portile2
|
|
@@ -58,7 +58,7 @@ metadata:
|
|
|
58
58
|
homepage_uri: https://github.com/Watson1978/ilios
|
|
59
59
|
source_code_uri: https://github.com/Watson1978/ilios
|
|
60
60
|
bug_tracker_uri: https://github.com/Watson1978/ilios/issues
|
|
61
|
-
documentation_uri: https://www.rubydoc.info/gems/ilios/0.4.
|
|
61
|
+
documentation_uri: https://www.rubydoc.info/gems/ilios/0.4.11
|
|
62
62
|
rubygems_mfa_required: 'true'
|
|
63
63
|
post_install_message:
|
|
64
64
|
rdoc_options: []
|