Skip to content

Commit f89a65d

Browse files
nickolas-pohiletsktoso
authored andcommitted
Move isDistributedRemoteActor outside #if
1 parent 750bdbb commit f89a65d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/Concurrency/Actor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -999,15 +999,15 @@ static_assert(sizeof(ActiveActorStatus) == ACTIVE_ACTOR_STATUS_SIZE,
999999

10001000
class DefaultActorImplHeader : public HeapObject {
10011001
protected:
1002+
// TODO (rokhinip): Make this a flagset
1003+
bool isDistributedRemoteActor;
10021004
#if SWIFT_CONCURRENCY_ACTORS_AS_LOCKS
10031005
// If actors are locks, we don't need to maintain any extra bookkeeping in the
10041006
// ActiveActorStatus since all threads which are contending will block
10051007
// synchronously, no job queue is needed and the lock will handle all priority
10061008
// escalation logic
10071009
Mutex drainLock;
10081010
#else
1009-
// TODO (rokhinip): Make this a flagset
1010-
bool isDistributedRemoteActor;
10111011
// Note: There is some padding that is added here by the compiler in order to
10121012
// enforce alignment. This is space that is available for us to use in
10131013
// the future

0 commit comments

Comments
 (0)