MCPcopy Create free account
hub / github.com/eclipsesource/J2V8 / tryAcquire

Method tryAcquire

src/main/java/com/eclipsesource/v8/V8Locker.java:62–72  ·  view source on GitHub ↗

Acquire the lock if it's currently not acquired by another thread. If it's currently held by another thread, tryAcquire will return false, otherwise true is returned. @return Returns true if the lock was acquired, false otherwise.

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

runMethod · 0.80

Calls 2

acquireLockMethod · 0.80
getV8RuntimePtrMethod · 0.80

Tested by 2

runMethod · 0.64