lmdb 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/ext/lmdb_ext/extconf.rb +3 -0
- data/ext/lmdb_ext/lmdb_ext.c +20 -1
- data/lib/lmdb/version.rb +1 -1
- data/lmdb.gemspec +1 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0e534de10f04a8bca911165a2e6a778307369bf
|
4
|
+
data.tar.gz: b4603ff6cf79b299b41baa2461942de8737fc590
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4664b68e7e4e244787da36b13661e16420c1647ef664c446fb0418bdf713148e594c26f472a00eed48eef912370b2132a517c8d1c4666ab04888d86d63164a4c
|
7
|
+
data.tar.gz: 93cb16d9ba6dfe1a029a4280cc721975e504cc6983854ab5c00fa696b3ff28b2524083dd9ca10b196fb772c2e1b1c2289b913a6211b0d9bdb121329bf4fa565e
|
data/Rakefile
CHANGED
data/ext/lmdb_ext/extconf.rb
CHANGED
data/ext/lmdb_ext/lmdb_ext.c
CHANGED
@@ -1,5 +1,24 @@
|
|
1
1
|
#include "lmdb_ext.h"
|
2
|
+
#include "extconf.h"
|
3
|
+
|
4
|
+
#ifdef HAVE_RB_THREAD_CALL_WITHOUT_GVL2
|
5
|
+
|
6
|
+
// ruby 2
|
2
7
|
#include "ruby/thread.h"
|
8
|
+
#define CALL_WITHOUT_GVL(func, data1, ubf, data2) \
|
9
|
+
rb_thread_call_without_gvl2(func, data1, ubf, data2)
|
10
|
+
|
11
|
+
#else
|
12
|
+
|
13
|
+
// ruby 193
|
14
|
+
// Expose the API from internal.h:
|
15
|
+
VALUE rb_thread_call_without_gvl(
|
16
|
+
rb_blocking_function_t *func, void *data1,
|
17
|
+
rb_unblock_function_t *ubf, void *data2);
|
18
|
+
#define CALL_WITHOUT_GVL(func, data1, ubf, data2) \
|
19
|
+
rb_thread_call_without_gvl((rb_blocking_function_t *)func, data1, ubf, data2)
|
20
|
+
|
21
|
+
#endif
|
3
22
|
|
4
23
|
static void check(int code) {
|
5
24
|
if (!code)
|
@@ -185,7 +204,7 @@ static VALUE with_transaction(VALUE venv, VALUE(*fn)(VALUE), VALUE arg, int flag
|
|
185
204
|
call_txn_begin(&txn_args);
|
186
205
|
}
|
187
206
|
else {
|
188
|
-
|
207
|
+
CALL_WITHOUT_GVL(
|
189
208
|
call_txn_begin, &txn_args,
|
190
209
|
stop_txn_begin, &txn_args);
|
191
210
|
|
data/lib/lmdb/version.rb
CHANGED
data/lmdb.gemspec
CHANGED
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.test_files = `git ls-files -- spec/*`.split("\n")
|
20
20
|
s.require_paths = ['lib']
|
21
21
|
|
22
|
+
s.required_ruby_version = "~> 1.9.3"
|
22
23
|
s.add_development_dependency 'rake', "~> 10.0"
|
23
24
|
s.add_development_dependency 'rake-compiler', '<=0.8.2'
|
24
25
|
s.add_development_dependency 'rspec', "~> 3.0"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lmdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Mendler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -101,9 +101,9 @@ require_paths:
|
|
101
101
|
- lib
|
102
102
|
required_ruby_version: !ruby/object:Gem::Requirement
|
103
103
|
requirements:
|
104
|
-
- - "
|
104
|
+
- - "~>"
|
105
105
|
- !ruby/object:Gem::Version
|
106
|
-
version:
|
106
|
+
version: 1.9.3
|
107
107
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
109
|
- - ">="
|