Sha256: aa233849117bdfe0adb777650436c3fc9b90f21ab55134f7f77ac9bdbc9f874b

Contents?: true

Size: 418 Bytes

Versions: 69

Compression:

Stored size: 418 Bytes

Contents

module V8
  module C
    # Shim to support the old style locking syntax. We don't currently
    # deprecate this because it might make a comeback at some point.
    #
    # to synchronize access to V8, and to associate V8 with this thread:
    #
    #     Locker() do
    #       #... interact with v8
    #     end
    def self.Locker
      lock = Locker.new
      yield
    ensure
      lock.delete
    end
  end
end

Version data entries

69 entries across 69 versions & 5 rubygems

Version Path
therubyracer-0.9.6 lib/v8/c/locker.rb
therubyracer-0.9.5 lib/v8/c/locker.rb
therubyracer-0.9.4 lib/v8/c/locker.rb
therubyracer-0.9.3 lib/v8/c/locker.rb
therubyracer-0.9.3beta1 lib/v8/c/locker.rb
therubyracer-0.9.2 lib/v8/c/locker.rb
therubyracer-0.9.2beta1 lib/v8/c/locker.rb
therubyracer-0.9.1 lib/v8/c/locker.rb
therubyracer-0.9.1beta1 lib/v8/c/locker.rb