summaryrefslogtreecommitdiffhomepage
path: root/test/ruby/hooks/on_thread_boot.rb
blob: 4f88424e35bc0ace2753a52f309066b1a33743af (plain) (blame)
1
2
3
4
5
6
7
8
9
require 'securerandom'

@mutex = Mutex.new

on_thread_boot do
    @mutex.synchronize do
        File.write("./cookie_thread_boot.#{SecureRandom.hex}", "booted")
    end
end