workqueue 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/workqueue.rb CHANGED
@@ -53,7 +53,7 @@ class WorkQueue
53
53
  end
54
54
 
55
55
  def abort!
56
- @aborted = true
56
+ @mutex.synchronize { @aborted = true }
57
57
  end
58
58
 
59
59
  def run
@@ -76,7 +76,8 @@ class WorkQueue
76
76
  end
77
77
 
78
78
  def join
79
- @joined = true
79
+ @mutex.synchronize { @joined = true }
80
+
80
81
  workers.each(&:join)
81
82
 
82
83
  self
@@ -1,5 +1,5 @@
1
1
  class WorkQueue
2
2
  def self.version
3
- '0.1.1'
3
+ '0.1.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workqueue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -38,7 +38,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
38
38
  version: '0'
39
39
  segments:
40
40
  - 0
41
- hash: -1761209356095410953
41
+ hash: 705587981601975922
42
42
  required_rubygems_version: !ruby/object:Gem::Requirement
43
43
  none: false
44
44
  requirements:
@@ -47,7 +47,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
47
47
  version: '0'
48
48
  segments:
49
49
  - 0
50
- hash: -1761209356095410953
50
+ hash: 705587981601975922
51
51
  requirements: []
52
52
  rubyforge_project: workqueue
53
53
  rubygems_version: 1.8.10