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 +4 -4
- data/lib/ffi/libfuse/ackbar.rb +3 -5
- data/lib/ffi/libfuse/thread_pool.rb +1 -1
- data/lib/ffi/stat/time_spec.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15234f8a5d3266770af5a8e87fd1e9c929f6ed0223af5d50582947e2c60b78c2
|
4
|
+
data.tar.gz: 759ab9aae65d65a30b0952d272a22da27664c27c9faa15dad2b34a962c9d04f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e757c4021dac79a5b295575584afc9cb8eaad8f7cc4eaa5eb16c59ea8b278b992d806ad141cf381ba014f94c67337a01bdaa4724cf4072e79c1cf05bcffeac24
|
7
|
+
data.tar.gz: da533a05a02701687b6d833062aded3adf9aabf4a26c95ced2b9450d73e0ae18543f258f2623ca75e6d8a19195287e4d54d9b60e934ceb5095fce6b9968c9b51
|
data/lib/ffi/libfuse/ackbar.rb
CHANGED
@@ -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
|
-
|
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)
|
data/lib/ffi/stat/time_spec.rb
CHANGED
@@ -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.
|
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-
|
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.
|
161
|
+
rubygems_version: 3.1.2
|
162
162
|
signing_key:
|
163
163
|
specification_version: 4
|
164
164
|
summary: FFI Bindings for Libfuse
|