ObjFW  Diff

Differences From Artifact [2f19637b86]:

To Artifact [9e5b4524e5]:


15
16
17
18
19
20
21
22
23


24
25
26
27
28
29
30
31
32


33
34

35
36
37
15
16
17
18
19
20
21


22
23
24
25
26
27
28
29
30


31
32
33

34
35
36
37







-
-
+
+







-
-
+
+

-
+



 */

#import "OFObject.h"
#import "OFLocking.h"

#import "threading.h"

/**
 * \brief A class for creating mutual exclusions.
/*!
 * @brief A class for creating mutual exclusions.
 */
@interface OFMutex: OFObject <OFLocking>
{
	of_mutex_t mutex;
	BOOL initialized;
}

/**
 * \brief Creates a new mutex.
/*!
 * @brief Creates a new mutex.
 *
 * \return A new autoreleased mutex.
 * @return A new autoreleased mutex.
 */
+ (instancetype)mutex;
@end