ObjFW  Diff

Differences From Artifact [879bd22002]:

To Artifact [29f177ef6f]:


19
20
21
22
23
24
25

26

27

28
29
30
31
32
33
34
35
36
37
38
39
40
41
42


43
44
45
46
47
48
49
#ifdef OF_HAVE_SOCKETS
# import "OFTCPSocket.h"
#endif

@class OFSortedList;
#ifdef OF_HAVE_THREADS
@class OFMutex;

#endif

@class OFTimer;

@class OFMutableDictionary;
@class OFStreamObserver;

/*!
 * @brief A class providing a run loop for the application and its processes.
 */
@interface OFRunLoop: OFObject
{
	OFSortedList *_timersQueue;
#ifdef OF_HAVE_THREADS
	OFMutex *_timersQueueLock;
#endif
#ifdef OF_HAVE_SOCKETS
	OFStreamObserver *_streamObserver;
	OFMutableDictionary *_readQueues;


#endif
	volatile bool _running;
}

/*!
 * @brief Returns the main run loop.
 *







>

>
|
>

|










|


>
>







19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifdef OF_HAVE_SOCKETS
# import "OFTCPSocket.h"
#endif

@class OFSortedList;
#ifdef OF_HAVE_THREADS
@class OFMutex;
@class OFCondition;
#endif
#ifdef OF_HAVE_SOCKETS
@class OFStreamObserver;
#endif
@class OFMutableDictionary;
@class OFTimer;

/*!
 * @brief A class providing a run loop for the application and its processes.
 */
@interface OFRunLoop: OFObject
{
	OFSortedList *_timersQueue;
#ifdef OF_HAVE_THREADS
	OFMutex *_timersQueueLock;
#endif
#if defined(OF_HAVE_SOCKETS)
	OFStreamObserver *_streamObserver;
	OFMutableDictionary *_readQueues;
#elif defined(OF_HAVE_THREADS)
	OFCondition *_condition;
#endif
	volatile bool _running;
}

/*!
 * @brief Returns the main run loop.
 *