You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to flash several times, the whole device hangs because "Lock Device" do not happen in the thread / queue.
The solution to wrap "Lock Device" with thread / queue.
That's what Swift would look like (Sorry for missing new lines) :
The text was updated successfully, but these errors were encountered:
xerenade
changed the title
Process in queue
Process in thread / queue, whole device hangs because "Lock Device"
Dec 17, 2018
xerenade
changed the title
Process in thread / queue, whole device hangs because "Lock Device"
The whole device hangs because "Lock Device" -> Solution: process in thread / queue
Dec 17, 2018
When I try to flash several times, the whole device hangs because "Lock Device" do not happen in the thread / queue.
The solution to wrap "Lock Device" with thread / queue.
That's what Swift would look like (Sorry for missing new lines) :
DispatchQueue.global(qos: .userInteractive).async { ... try device.lockForConfiguration() ... device.torchMode = .on ... device.unlockForConfiguration() ... }
The text was updated successfully, but these errors were encountered: