ilios 0.4.10 → 0.4.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1e873b74dbb71ac4a950cf02eed7f2edf1207e8e2aabfd70575643b981af4f6c
4
- data.tar.gz: 8312031b4094cc1a8849ca87530960e8140109a520e08421ed5ef9c21418f3ce
3
+ metadata.gz: 0def2f85dbab76062cb552bdf5263988913ea5e7bd7ecafd2681e81d91dcf5f6
4
+ data.tar.gz: 9c6b8696ae30614e09709ab2ba7706964c11b382d4b09361e9518d7a25d4891d
5
5
  SHA512:
6
- metadata.gz: 86df26c6d95ec57893a84a77e032d3380fb6f6e7f0bda23b59b8e8a8e170bea2a98c2fa1db32c9e7860220a6b3768fec3048c823c8093c23efdc87a16604d4a1
7
- data.tar.gz: 51357dab484bf3ef443db260292c62f9f45cff02a40439d80f1ca580bcf828816bfe38db916a448a350b89b3e78ae5dafaa0ec7e1756b6a92f228070e6dcdfc2
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(cQueue, id_new, 0);
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 cQueue;
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
- cQueue = rb_const_get(rb_cThread, rb_intern("Queue"));
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
@@ -84,7 +84,7 @@ extern VALUE eConnectError;
84
84
  extern VALUE eExecutionError;
85
85
  extern VALUE eStatementError;
86
86
 
87
- extern VALUE cQueue;
87
+ extern VALUE cSizedQueue;
88
88
 
89
89
  extern VALUE id_to_time;
90
90
  extern VALUE id_new;
data/lib/ilios/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ilios
4
- VERSION = '0.4.10'
4
+ VERSION = '0.4.11'
5
5
  public_constant :VERSION
6
6
 
7
7
  CASSANDRA_CPP_DRIVER_VERSION = '2.17.1'
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.10
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-02-19 00:00:00.000000000 Z
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.10
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: []