We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48eb4fc commit f06bd4aCopy full SHA for f06bd4a
1 file changed
lib/sqlite3/fork_safety.rb
@@ -2,10 +2,10 @@
2
3
require "weakref"
4
5
-# based on Rails's active_support/fork_tracker.rb
6
module SQLite3
+ # based on Rails's active_support/fork_tracker.rb
7
module ForkSafety
8
- module CoreExt
+ module CoreExt # :nodoc:
9
def _fork
10
pid = super
11
if pid == 0
@@ -20,17 +20,17 @@ def _fork
20
@suppress = false
21
22
class << self
23
- def hook!
+ def hook! # :nodoc:
24
::Process.singleton_class.prepend(CoreExt)
25
end
26
27
- def track(database)
+ def track(database) # :nodoc:
28
@mutex.synchronize do
29
@databases << WeakRef.new(database)
30
31
32
33
- def discard
+ def discard # :nodoc:
34
warned = @suppress
35
@databases.each do |db|
36
next unless db.weakref_alive?
0 commit comments