ObjFW  Check-in [c5e8215ddc]

Overview
Comment:OFRunLoop: Fix _timersQueueMutex being nil
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: c5e8215ddce43a06902624901b31ec7e16fbf78b77885339115271524c3bf199
User & Date: js on 2019-08-31 13:09:50
Other Links: manifest | tags
Context
2019-08-31
16:20
Fix order in a few headers check-in: c756e51a93 user: js tags: trunk
13:09
OFRunLoop: Fix _timersQueueMutex being nil check-in: c5e8215ddc user: js tags: trunk
12:50
Update PLATFORMS.md check-in: 9d6b6d0c05 user: js tags: trunk
Changes

Modified src/OFRunLoop.m from [67b18d3257] to [a4f683594b].

176
177
178
179
180
181
182



183
184
185
186
187
188
189
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192







+
+
+







@implementation OFRunLoopState
- (instancetype)init
{
	self = [super init];

	@try {
		_timersQueue = [[OFSortedList alloc] init];
#ifdef OF_HAVE_THREADS
		_timersQueueMutex = [[OFMutex alloc] init];
#endif

#if defined(OF_HAVE_SOCKETS)
		_kernelEventObserver = [[OFKernelEventObserver alloc] init];
		_kernelEventObserver.delegate = self;

		_readQueues = [[OFMutableDictionary alloc] init];
		_writeQueues = [[OFMutableDictionary alloc] init];
197
198
199
200
201
202
203



204
205
206
207
208
209
210
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216







+
+
+








	return self;
}

- (void)dealloc
{
	[_timersQueue release];
#ifdef OF_HAVE_THREADS
	[_timersQueueMutex release];
#endif
#if defined(OF_HAVE_SOCKETS)
	[_kernelEventObserver release];
	[_readQueues release];
	[_writeQueues release];
#elif defined(OF_HAVE_THREADS)
	[_condition release];
#endif