Skip to content

Commit 2130b32

Browse files
authored
[Darwin] MTRDevice_XPC needs to initialize queue (#37693)
1 parent 5398152 commit 2130b32

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/darwin/Framework/CHIP/MTRDevice_XPC.mm

+2-1
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,12 @@
8585
@implementation MTRDevice_XPC
8686

8787
@synthesize _internalState;
88+
@synthesize queue = _queue;
8889

8990
- (instancetype)initWithNodeID:(NSNumber *)nodeID controller:(MTRDeviceController_XPC *)controller
9091
{
9192
if (self = [super initForSubclassesWithNodeID:nodeID controller:controller]) {
92-
// Nothing else to do, all set.
93+
_queue = dispatch_queue_create("org.csa-iot.matter.framework.devicexpc.workqueue", DISPATCH_QUEUE_SERIAL_WITH_AUTORELEASE_POOL);
9394
}
9495

9596
return self;

0 commit comments

Comments
 (0)