ObjFW  Check-in [a220bd7393]

Overview
Comment:Fix --disable-threads --disable-sockets
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: a220bd7393b2bcf0ea37694cdad4294455aa683dc200165d5de92b61c1e8876c
User & Date: js on 2018-08-11 20:45:15
Other Links: manifest | tags
Context
2018-08-11
21:34
.travis.yml: Re-enable 3DS, DS and Wii check-in: 7acee0909f user: js tags: trunk
20:45
Fix --disable-threads --disable-sockets check-in: a220bd7393 user: js tags: trunk
20:31
OFDNSResolver: Reorder methods and make GCC happy check-in: eb2ccce976 user: js tags: trunk
Changes

Modified src/OFThread.m from [0be3da0cb6] to [640ed8051c].

83
84
85
86
87
88
89
90

91
92
93
94
95
96
97
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

#ifdef OF_HAVE_THREADS
#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
135

136
137
138
139
140
141
142
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];
}
#else
#elif defined(OF_HAVE_SOCKETS)
static OFDNSResolver *DNSResolver;
#endif

@implementation OFThread
#ifdef OF_HAVE_THREADS
@synthesize name = _name;
# ifdef OF_HAVE_BLOCKS