fastthread 1.0.5 → 1.0.6
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.
- data/CHANGELOG +2 -0
- data/ext/fastthread/fastthread.c +2 -1
- data/fastthread.gemspec +6 -4
- metadata +3 -3
data/CHANGELOG
CHANGED
data/ext/fastthread/fastthread.c
CHANGED
@@ -12,6 +12,7 @@
|
|
12
12
|
#include <ruby.h>
|
13
13
|
#include <intern.h>
|
14
14
|
#include <rubysig.h>
|
15
|
+
#include <version.h>
|
15
16
|
|
16
17
|
static VALUE rb_cMutex;
|
17
18
|
static VALUE rb_cConditionVariable;
|
@@ -299,7 +300,7 @@ typedef struct _Mutex {
|
|
299
300
|
List waiting;
|
300
301
|
} Mutex;
|
301
302
|
|
302
|
-
#if RUBY_VERSION_MAJOR == 1 && RUBY_VERSION_MINOR == 8 &&
|
303
|
+
#if RUBY_VERSION_MAJOR == 1 && RUBY_VERSION_MINOR == 8 && RUBY_VERSION_TEENY < 6
|
303
304
|
#define MUTEX_LOCKED_P(mutex) (RTEST((mutex)->owner))
|
304
305
|
#else
|
305
306
|
#define MUTEX_LOCKED_P(mutex) (RTEST((mutex)->owner) && rb_thread_alive_p((mutex)->owner))
|
data/fastthread.gemspec
CHANGED
@@ -1,10 +1,12 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
1
3
|
Gem::Specification.new do |s|
|
2
4
|
s.name = %q{fastthread}
|
3
|
-
s.version = "1.0.
|
5
|
+
s.version = "1.0.6"
|
4
6
|
|
5
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
6
8
|
s.authors = ["MenTaLguY <mental@rydia.net>"]
|
7
|
-
s.date = %q{2009-03-
|
9
|
+
s.date = %q{2009-03-29}
|
8
10
|
s.description = %q{Optimized replacement for thread.rb primitives}
|
9
11
|
s.email = %q{mental@rydia.net}
|
10
12
|
s.extensions = ["ext/fastthread/extconf.rb"]
|
@@ -15,7 +17,7 @@ Gem::Specification.new do |s|
|
|
15
17
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Fastthread"]
|
16
18
|
s.require_paths = ["lib", "ext"]
|
17
19
|
s.rubyforge_project = %q{mongrel}
|
18
|
-
s.rubygems_version = %q{1.
|
20
|
+
s.rubygems_version = %q{1.3.1}
|
19
21
|
s.summary = %q{Optimized replacement for thread.rb primitives}
|
20
22
|
s.test_files = ["test/test_all.rb"]
|
21
23
|
|
@@ -23,7 +25,7 @@ Gem::Specification.new do |s|
|
|
23
25
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
24
26
|
s.specification_version = 2
|
25
27
|
|
26
|
-
if
|
28
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
27
29
|
else
|
28
30
|
end
|
29
31
|
else
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastthread
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MenTaLguY <mental@rydia.net>
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-03-
|
12
|
+
date: 2009-03-29 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -61,7 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
61
61
|
requirements: []
|
62
62
|
|
63
63
|
rubyforge_project: mongrel
|
64
|
-
rubygems_version: 1.
|
64
|
+
rubygems_version: 1.3.1
|
65
65
|
signing_key:
|
66
66
|
specification_version: 2
|
67
67
|
summary: Optimized replacement for thread.rb primitives
|