ffi-libfuse 0.0.1.pre → 0.0.1.rctest11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c870a0015b02637bb7423453df5f208dc2a9b263ac5d68ae9de7a71c7767e005
4
- data.tar.gz: 6ea5d671235ce094dbcbaf1e2257cc8879a102af74fc9a5ebc0cf2238e17a6fd
3
+ metadata.gz: 15234f8a5d3266770af5a8e87fd1e9c929f6ed0223af5d50582947e2c60b78c2
4
+ data.tar.gz: 759ab9aae65d65a30b0952d272a22da27664c27c9faa15dad2b34a962c9d04f4
5
5
  SHA512:
6
- metadata.gz: d80e0f44e8bf7bbb23705c9937c142105aed1eb89bd8cad0f8eba5a8e36b6f590afb35080790df7564f0c2f2f3aec86ef3c99a83a24d8ec3201ca13963ca0e63
7
- data.tar.gz: 9937c251e92940a61e0e6d01c9b45ce525a2e0045d6cdcc182d377926d8c671ae3e9de07d128e8344a566ff8cc71d06095514e3701d31065faec57e88e9f383e
6
+ metadata.gz: e757c4021dac79a5b295575584afc9cb8eaad8f7cc4eaa5eb16c59ea8b278b992d806ad141cf381ba014f94c67337a01bdaa4724cf4072e79c1cf05bcffeac24
7
+ data.tar.gz: da533a05a02701687b6d833062aded3adf9aabf4a26c95ced2b9450d73e0ae18543f258f2623ca75e6d8a19195287e4d54d9b60e934ceb5095fce6b9968c9b51
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative 'fuse_version'
4
+ require 'io/wait'
4
5
 
5
6
  module FFI
6
7
  module Libfuse
@@ -72,11 +73,8 @@ module FFI
72
73
  @monitor ||= Thread.new do
73
74
  Thread.current.name = name
74
75
  loop do
75
- timeout = block_given? ? yield : nil
76
-
77
- ready, _ignore_writable, _errors = ::IO.select([@pr], [], [], timeout)
78
-
79
- break if ready&.include?(@pr) && !self.next
76
+ @pr.wait_readable(block_given? ? yield : nil)
77
+ break unless self.next
80
78
  end
81
79
  end
82
80
  end
@@ -136,7 +136,7 @@ module FFI
136
136
  def idle_limit_exceeded?
137
137
  return false unless @max_idle
138
138
 
139
- synchronize { (@size - @busy - @idle_death.size - 1) > @max_idle && @idle_death << Thread.current }
139
+ synchronize { (@size - @busy - @idle_death.size - 1) > @max_idle && (@idle_death << Thread.current) }
140
140
  end
141
141
 
142
142
  def synchronize(&block)
@@ -104,7 +104,7 @@ module FFI
104
104
  return nil if omit?
105
105
 
106
106
  t = now? ? (now || Time.now) : self
107
- t.tv_sec * 10**9 + t.tv_nsec
107
+ (t.tv_sec * (10**9)) + t.tv_nsec
108
108
  end
109
109
 
110
110
  # Convert to Float
@@ -116,7 +116,7 @@ module FFI
116
116
  return nil if omit?
117
117
 
118
118
  t = now? ? (now || Time.now) : self
119
- t.tv_sec.to_f + t.tv_nsec.to_f / (10**9)
119
+ t.tv_sec.to_f + (t.tv_nsec.to_f / (10**9))
120
120
  end
121
121
 
122
122
  # @!visibility private
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffi-libfuse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.pre
4
+ version: 0.0.1.rctest11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grant Gardner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-15 00:00:00.000000000 Z
11
+ date: 2021-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -158,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
158
  - !ruby/object:Gem::Version
159
159
  version: 1.3.1
160
160
  requirements: []
161
- rubygems_version: 3.0.9
161
+ rubygems_version: 3.1.2
162
162
  signing_key:
163
163
  specification_version: 4
164
164
  summary: FFI Bindings for Libfuse