Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Unified Diff: include/v8.h

Issue 2829223002: Add setter to Isolate for allowing Atomics.wait (Closed)
Patch Set: add test Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index f1ba9a3347d7148cb7dfaced95d9a82fea412709..8f4a6a3df4f074920815bd88887f65455ad6a089 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -6619,7 +6619,7 @@ class V8_EXPORT Isolate {
/**
* Whether calling Atomics.wait (a function that may block) is allowed in
- * this isolate.
+ * this isolate. This can also be configured via SetAllowAtomicsWait.
*/
bool allow_atomics_wait;
@@ -7479,6 +7479,13 @@ class V8_EXPORT Isolate {
*/
bool IsInUse();
+ /**
+ * Set whether calling Atomics.wait (a function that may block) is allowed in
+ * this isolate. This can also be configured via
+ * CreateParams::allow_atomics_wait.
+ */
+ void SetAllowAtomicsWait(bool allow);
+
Isolate() = delete;
~Isolate() = delete;
Isolate(const Isolate&) = delete;
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698