ObjFW  Diff

Differences From Artifact [0d2fba1b4a]:

To Artifact [48c9aa376a]:


116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
 * A class for creating mutual exclusions.
 */
@interface OFMutex: OFObject
{
#ifndef _WIN32
	pthread_mutex_t mutex;
#else
	HANDLE mutex;
#endif
}

/**
 * \return A new, autoreleased mutex.
 */
+ mutex;







|







116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
 * A class for creating mutual exclusions.
 */
@interface OFMutex: OFObject
{
#ifndef _WIN32
	pthread_mutex_t mutex;
#else
	CRITICAL_SECTION mutex;
#endif
}

/**
 * \return A new, autoreleased mutex.
 */
+ mutex;