Differences From Artifact [fdef3caeb2]:
- File src/OFRunLoop.h — part of check-in [481225349f] at 2017-09-24 12:24:23 on branch trunk — OFStream: Add support for async writes (user: js, size: 2300) [annotate] [blame] [check-ins using]
To Artifact [740edb7b33]:
- File
src/OFRunLoop.h
— part of check-in
[a2e849c681]
at
2017-10-30 00:23:35
on branch trunk
— Add class properties where appropriate
This improves Swift compatibility. (user: js, size: 2507) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
52 53 54 55 56 57 58 59 60 61 62 63 | OFMutableDictionary *_readQueues, *_writeQueues; #elif defined(OF_HAVE_THREADS) OFCondition *_condition; #endif volatile bool _stop; } /*! * @brief Returns the run loop for the main thread. * * @return The run loop for the main thread */ | > > > > > | | | 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | OFMutableDictionary *_readQueues, *_writeQueues; #elif defined(OF_HAVE_THREADS) OFCondition *_condition; #endif volatile bool _stop; } #ifdef OF_HAVE_CLASS_PROPERTIES @property (class, readonly, nullable, nonatomic) OFRunLoop *mainRunLoop; @property (class, readonly, nullable, nonatomic) OFRunLoop *currentRunLoop; #endif /*! * @brief Returns the run loop for the main thread. * * @return The run loop for the main thread */ + (nullable OFRunLoop *)mainRunLoop; /*! * @brief Returns the run loop for the current thread. * * @return The run loop for the current thread */ + (nullable OFRunLoop *)currentRunLoop; /*! * @brief Adds an OFTimer to the run loop. * * @param timer The timer to add */ - (void)addTimer: (OFTimer *)timer; |
︙ | ︙ |