18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
#import "OFObject.h"
#import "OFLocking.h"
#import "mutex.h"
OF_ASSUME_NONNULL_BEGIN
/*!
* @class OFRecursiveMutex OFRecursiveMutex.h ObjFW/OFRecursiveMutex.h
*
* @brief A class for creating mutual exclusions which can be entered
* recursively.
*/
OF_SUBCLASSING_RESTRICTED
@interface OFRecursiveMutex: OFObject <OFLocking>
{
of_rmutex_t _rmutex;
bool _initialized;
OFString *_Nullable _name;
}
/*!
* @brief Creates a new recursive mutex.
*
* @return A new autoreleased recursive mutex.
*/
+ (instancetype)mutex;
@end
|
|
|
|
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
#import "OFObject.h"
#import "OFLocking.h"
#import "mutex.h"
OF_ASSUME_NONNULL_BEGIN
/**
* @class OFRecursiveMutex OFRecursiveMutex.h ObjFW/OFRecursiveMutex.h
*
* @brief A class for creating mutual exclusions which can be entered
* recursively.
*/
OF_SUBCLASSING_RESTRICTED
@interface OFRecursiveMutex: OFObject <OFLocking>
{
of_rmutex_t _rmutex;
bool _initialized;
OFString *_Nullable _name;
}
/**
* @brief Creates a new recursive mutex.
*
* @return A new autoreleased recursive mutex.
*/
+ (instancetype)mutex;
@end
|