diff options
Diffstat (limited to 'test/ruby/hooks/on_thread_boot.rb')
-rw-r--r-- | test/ruby/hooks/on_thread_boot.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/ruby/hooks/on_thread_boot.rb b/test/ruby/hooks/on_thread_boot.rb new file mode 100644 index 00000000..4f88424e --- /dev/null +++ b/test/ruby/hooks/on_thread_boot.rb @@ -0,0 +1,9 @@ +require 'securerandom' + +@mutex = Mutex.new + +on_thread_boot do + @mutex.synchronize do + File.write("./cookie_thread_boot.#{SecureRandom.hex}", "booted") + end +end |