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

Method requestInterrupt

valdi/src/valdi/runtime/Interfaces/IJavaScriptContext.cpp:415–417  ·  view source on GitHub ↗

We don't care about pure thread safety correctness of the interrupt boolean, it needs to be as low overhead as possible

Source from the content-addressed store, hash-verified

413// We don't care about pure thread safety correctness of the
414// interrupt boolean, it needs to be as low overhead as possible
415__attribute__((no_sanitize("thread"))) void IJavaScriptContext::requestInterrupt() {
416 _interruptRequested = true;
417}
418
419__attribute__((no_sanitize("thread"))) void IJavaScriptContext::onInterrupt() {
420 if (_listener != nullptr) {

Callers 1

captureStackTracesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected