Overview
| Comment: | OFThread: Mark the thread block nullable |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
3621719bc8edd9074b823c8c8f5c67fc |
| User & Date: | js on 2017-10-07 10:49:28 |
| Other Links: | manifest | tags |
Context
|
2017-10-07
| ||
| 11:22 | OFThread: Fix the name accidentally being readonly (check-in: 2f6a0e5ba9 user: js tags: trunk) | |
| 10:49 | OFThread: Mark the thread block nullable (check-in: 3621719bc8 user: js tags: trunk) | |
| 10:46 | OFThread: Fix setting the name on the wrong thread (check-in: 1494d3f6f1 user: js tags: trunk) | |
Changes
Modified src/OFThread.h from [c358f93979] to [24f32e5db8].
| ︙ | ︙ | |||
64 65 66 67 68 69 70 |
enum of_thread_running {
OF_THREAD_NOT_RUNNING,
OF_THREAD_RUNNING,
OF_THREAD_WAITING_FOR_JOIN
} _running;
void *_pool;
# ifdef OF_HAVE_BLOCKS
| | > | | 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
enum of_thread_running {
OF_THREAD_NOT_RUNNING,
OF_THREAD_RUNNING,
OF_THREAD_WAITING_FOR_JOIN
} _running;
void *_pool;
# ifdef OF_HAVE_BLOCKS
of_thread_block_t _Nullable _threadBlock;
# endif
id _returnValue;
OFRunLoop *_Nullable _runLoop;
OFMutableDictionary *_threadDictionary;
@private
OFString *_Nullable _name;
}
/*!
* The name for the thread to use when starting it.
*/
@property OF_NULLABLE_PROPERTY (readonly, nonatomic) OFString *name;
# ifdef OF_HAVE_BLOCKS
/*!
* The block to execute in the thread.
*/
@property OF_NULLABLE_PROPERTY (readonly, nonatomic)
of_thread_block_t threadBlock;
# endif
/*!
* @brief Creates a new thread.
*
* @return A new, autoreleased thread
*/
|
| ︙ | ︙ |