I have a task to compuate thousands of vector with vDSP. The origin code is below: var results = [Float] func calculate_all_vector(vector_lst) { ...
I have a task to compuate thousands of vector with vDSP. The origin code is below: var results = [Float] func calculate_all_vector(vector_lst) { ...
I encountered a problem with non-iOS developer while describing the flow of OperationQueue. We already know that with OperationQueue we can start as m ...
I have a simple task with threads, but what seems to help everyone else, doesn’t work for me and I don’t understand why. This is my button processing ...
I have created a method to fetch user messages from Firebase, however when leaving DispatchGroup app crashes leading to this error Thread 1: EXC_BAD_I ...
I have a ScannerService class that has the following function: I am calling this function from the ScannerView: } Right now, I am returned an e ...
I have created a simple Core Data project at Github to demonstrate my problem: My test app downloads a JSON list of objects, stores it in Core Data ...
I am still very new to IOS programming, and I've run into an issue while using the Firebase database and storage. Here is the image: : This is what ...
I have created a "lock" in Swift and an Atomic property wrapper that uses that lock, for my Swift classes as Swift lacks ObjC's atomic property attrib ...
I have a value type for which a relatively long calculation is require to produce it (> 1s). I wrap this value type in an enumeration that expresse ...
My class A has a property of class B which can be reset: class A1 { private var b = B(0) func changeB(i : Int) { b = B(i) } ...
I am executing set of tasks, and in order to span them over time I've used Thread.sleep(forTimeInterval: ... ) It adds pauses between executions. The ...
Do I need some kind of explicit synchronization in this case? class A { let val: Int; init(_ newVal: Int) { val = newVal } } public cl ...
In my Swift class I have multiple properties. For these properties do I need to create different Concurrent Queue or I can use the same Queue? Please ...
First of all I'd like to say sorry in case you consider my question dummy, I'm new to iOS and multithreading and just want to understand how things ar ...
Let's say, there is a variable that I want to make thread safe. One of the most common ways to do this: However, this property is not completely th ...
In one of my project, we are working on one interesting feature, that is we have a rest json response, it contains 100 media download urls. Because of ...
Most answers on stackoverflow implies in a way that sync vs async behaviour is quite similar to serial vs concurrent queue concept difference. Like th ...
I tried to increase the priority of the block executed in the concurrent queue. I suggested that the flag enforceQoS is suitable for this purpose. As ...
In my game engine, I have an option to enable the multithreaded rendering. In iOS 12 (and below) my app did not crash. I have not changed anything in ...
I'm currently testing this code in the Xcode 10 playground (Swift 5): The problem is that both "hi" and "nil" are printed. If I get rid of the thr ...