fastthread 1.0.4 → 1.0.5
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 +4 -0
- data/fastthread.gemspec +2 -2
- metadata +2 -2
data/CHANGELOG
CHANGED
data/ext/fastthread/fastthread.c
CHANGED
@@ -299,7 +299,11 @@ typedef struct _Mutex {
|
|
299
299
|
List waiting;
|
300
300
|
} Mutex;
|
301
301
|
|
302
|
+
#if RUBY_VERSION_MAJOR == 1 && RUBY_VERSION_MINOR == 8 && RUBY_VERSION_PATCHLEVEL < 6
|
303
|
+
#define MUTEX_LOCKED_P(mutex) (RTEST((mutex)->owner))
|
304
|
+
#else
|
302
305
|
#define MUTEX_LOCKED_P(mutex) (RTEST((mutex)->owner) && rb_thread_alive_p((mutex)->owner))
|
306
|
+
#endif
|
303
307
|
|
304
308
|
static void
|
305
309
|
mark_mutex(Mutex *mutex)
|
data/fastthread.gemspec
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = %q{fastthread}
|
3
|
-
s.version = "1.0.
|
3
|
+
s.version = "1.0.5"
|
4
4
|
|
5
5
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
6
6
|
s.authors = ["MenTaLguY <mental@rydia.net>"]
|
7
|
-
s.date = %q{2009-03-
|
7
|
+
s.date = %q{2009-03-25}
|
8
8
|
s.description = %q{Optimized replacement for thread.rb primitives}
|
9
9
|
s.email = %q{mental@rydia.net}
|
10
10
|
s.extensions = ["ext/fastthread/extconf.rb"]
|
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.5
|
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-25 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|