Skip to content

Commit 5c77cfd

Browse files
committed
Spinlock?
1 parent 3bd9062 commit 5c77cfd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/mtl/capture.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ Stop GPU frame capture.
141141
"""
142142
function stopCapture(manager::MTLCaptureManager=MTLCaptureManager())
143143
@objc [manager::id{MTLCaptureManager} stopCapture]::Nothing
144+
while manager.isCapturing
145+
end
144146
end
145147

146148
function supports_destination(manager::MTLCaptureManager, destination::MTLCaptureDestination)

0 commit comments

Comments
 (0)