This commit is contained in:
rfm 2024-04-02 11:07:14 +01:00
parent 3415de14c0
commit d52708e020
2 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,7 @@
2024-04-02 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSURLSession.m: fix for #385
2024-03-11 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSNotificationCenter.m: Ensure class pointer is initialised

View file

@ -197,12 +197,14 @@ static unsigned nextSessionIdentifier()
#endif
curl_global_init(CURL_GLOBAL_SSL);
sprintf(label, "NSURLSession %u", nextSessionIdentifier());
targetQueue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);
targetQueue
= dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);
#if HAVE_DISPATCH_QUEUE_CREATE_WITH_TARGET
_workQueue = dispatch_queue_create_with_target(label, DISPATCH_QUEUE_SERIAL, targetQueue);
_workQueue = dispatch_queue_create_with_target(label,
DISPATCH_QUEUE_SERIAL, targetQueue);
#else
_workQueue = dispatch_queue_create(label, DISPATCH_QUEUE_SERIAL);
dispatch_set_target_queue(_queue, targetQueue);
dispatch_set_target_queue(_workQueue, targetQueue);
#endif
if (nil != queue)
{