fastthread 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ v1.0.5 Backwards compatibility tweak for 1.8.5
2
+
1
3
  v1.0.4 Fix for JRuby, and re-enable fastthread for 1.8.6p111
2
4
 
3
5
  v1.0.3. Make native build a noop on Rubies that have no real need for fastthread
@@ -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)
@@ -1,10 +1,10 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{fastthread}
3
- s.version = "1.0.4"
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-20}
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
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-20 00:00:00 -04:00
12
+ date: 2009-03-25 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15