MCPcopy Create free account
hub / github.com/Snapchat/Valdi / getTaskScheduler

Method getTaskScheduler

valdi/src/valdi/runtime/JavaScript/JSValueRefHolder.cpp:53–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53// JSValueRefHolder deallocation triggers a tsan warning, as it is possible that
54// the dispose() virtual method gets called while the holder is being destroyed.
55// This is not a problem in practice as we acquire the lock during the removeDisposable()
56// call, so the destructor will end up "pausing" while doDispose() is called
57__attribute__((no_sanitize("thread"))) JSValueRefHolder::~JSValueRefHolder() {
58 _context->removeDisposable(this);

Callers 7

onCompleteMethod · 0.45
cancelMethod · 0.45
getStackTraceMethod · 0.45
JSValueRefHolderMethod · 0.45
isFromJsContextMethod · 0.45

Calls 1

lockMethod · 0.45

Tested by

no test coverage detected