Differences From Artifact [0be3da0cb6]:
- File
src/OFThread.m
— part of check-in
[2fb0769744]
at
2018-08-11 20:25:04
on branch trunk
— Add +[OFThread DNSResolver]
This returns the DNS resolver for the current thread. (user: js, size: 9765) [annotate] [blame] [check-ins using]
To Artifact [640ed8051c]:
- File src/OFThread.m — part of check-in [a220bd7393] at 2018-08-11 20:45:15 on branch trunk — Fix --disable-threads --disable-sockets (user: js, size: 9796) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
83 84 85 86 87 88 89 | # import "atomic.h" #endif #ifdef OF_DJGPP # define lrint(x) rint(x) #endif | | | 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 | # import "atomic.h" #endif #ifdef OF_DJGPP # define lrint(x) rint(x) #endif #if defined(OF_HAVE_THREADS) # import "threading.h" static of_tlskey_t threadSelfKey; static OFThread *mainThread; static void callMain(id object) |
︙ | ︙ | |||
128 129 130 131 132 133 134 | thread->_running = OF_THREAD_WAITING_FOR_JOIN; objc_autoreleasePoolPop(thread->_pool); [OFAutoreleasePool of_handleThreadTermination]; [thread release]; } | | | 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | thread->_running = OF_THREAD_WAITING_FOR_JOIN; objc_autoreleasePoolPop(thread->_pool); [OFAutoreleasePool of_handleThreadTermination]; [thread release]; } #elif defined(OF_HAVE_SOCKETS) static OFDNSResolver *DNSResolver; #endif @implementation OFThread #ifdef OF_HAVE_THREADS @synthesize name = _name; # ifdef OF_HAVE_BLOCKS |
︙ | ︙ |