ObjFW  Check-in [3b1c4cc681]

Overview
Comment:Make thread ivars private.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 3b1c4cc68192a39b57b43998f1c2bed74f56a8e1c143fa389aa19582e2bbb985
User & Date: js on 2012-09-09 17:50:10
Other Links: manifest | tags
Context
2012-09-11
12:10
Add -[OFList removeAllObjects]. check-in: 2b5d03d8ea user: js tags: trunk
2012-09-09
17:50
Make thread ivars private. check-in: 3b1c4cc681 user: js tags: trunk
17:48
Make the main thread an OFThread. check-in: ead7b7acd3 user: js tags: trunk
Changes

Modified src/OFThread.h from [3a25c292f8] to [ee8e77c050].

73
74
75
76
77
78
79

80



81
82
83
84
85
86
87
 * \brief A class which provides portable threads.
 *
 * To use it, you should create a new class derived from it and reimplement
 * main.
 */
@interface OFThread: OFObject
{

@public



	id object;
	of_thread_t thread;
	enum {
		OF_THREAD_NOT_RUNNING,
		OF_THREAD_RUNNING,
		OF_THREAD_WAITING_FOR_JOIN
	} running;







>

>
>
>







73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
 * \brief A class which provides portable threads.
 *
 * To use it, you should create a new class derived from it and reimplement
 * main.
 */
@interface OFThread: OFObject
{
#ifdef OF_THREAD_M
@public
#else
@private
#endif
	id object;
	of_thread_t thread;
	enum {
		OF_THREAD_NOT_RUNNING,
		OF_THREAD_RUNNING,
		OF_THREAD_WAITING_FOR_JOIN
	} running;

Modified src/OFThread.m from [413ce95285] to [e9c62791d8].

11
12
13
14
15
16
17


18
19
20
21
22
23
24
 * Alternatively, it may be distributed under the terms of the GNU General
 * Public License, either version 2 or 3, which can be found in the file
 * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
 * file.
 */

#include "config.h"



#define __NO_EXT_QNX

#include <math.h>

#ifndef _WIN32
# include <unistd.h>







>
>







11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 * Alternatively, it may be distributed under the terms of the GNU General
 * Public License, either version 2 or 3, which can be found in the file
 * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
 * file.
 */

#include "config.h"

#define OF_THREAD_M

#define __NO_EXT_QNX

#include <math.h>

#ifndef _WIN32
# include <unistd.h>