libdispatch Questions

6

Solved

I have lots of code in Swift 2.x (or even 1.x) projects that looks like this: // Move to a background thread to do some long running work dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PR...
Verdieverdigris asked 14/6, 2016 at 0:58

7

Solved

Okay, so I found out about the new Swifty Dispatch API in Xcode 8. I'm having fun using DispatchQueue.main.async, and I've been browsing around the Dispatch module in Xcode to find all the new APIs...
Joaquin asked 14/6, 2016 at 1:2

2

The following code will occupy ~410MB of memory and will not release it again. (The version using dispatch_sync instead of dispatch_async will require ~8MB memory) I would expect a spike of high me...

4

Solved

I would love to try out grand central dispatch, but all I have to develop on is an Ubuntu workstation. Is libdispatch, and the blocks extension to c/obj-c etc... available on linux? If so, how do I...
Nellie asked 12/4, 2011 at 18:36

1

I sometimes get a crash deep inside libdispatch with the following backtrace stemming from the SecItemCopyMatching function. * thread #1: tid = 0x169ee8, 0x0374c830 libdispatch.dylib`_dispatch_sem...
Aargau asked 24/1, 2014 at 13:18

5

Solved

I’m looking into multithreading, and GCD seems like a much better option than manually writing a solution using pthread.h and pthreads-win32. However, although it looks like libdispatch is either w...
1

© 2022 - 2024 — McMap. All rights reserved.