mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Fix for #385
This commit is contained in:
parent
3415de14c0
commit
d52708e020
2 changed files with 9 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue