We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 42ede18 + 1ba0462 commit 28493d0Copy full SHA for 28493d0
stdlib/public/Concurrency/Actor.cpp
@@ -853,7 +853,9 @@ class DefaultActorImpl : public HeapObject {
853
/// Properly construct an actor, except for the heap header.
854
void initialize(bool isDistributedRemote = false) {
855
this->isDistributedRemoteActor = isDistributedRemote;
856
-#if !SWIFT_CONCURRENCY_ACTORS_AS_LOCKS
+#if SWIFT_CONCURRENCY_ACTORS_AS_LOCKS
857
+ new (&this->drainLock) Mutex();
858
+#else
859
_status().store(ActiveActorStatus(), std::memory_order_relaxed);
860
#endif
861
SWIFT_TASK_DEBUG_LOG("Creating default actor %p", this);
0 commit comments