ObjFW  Diff

Differences From Artifact [08bcd2f7b5]:

To Artifact [99a3d0e9e5]:


34
35
36
37
38
39
40
41

42
43
44
45
46
47
48
34
35
36
37
38
39
40

41
42
43
44
45
46
47
48







-
+







}

- (instancetype)init
{
	self = [super init];

	if (!of_mutex_new(&_mutex)) {
		Class c = [self class];
		Class c = self.class;
		[self release];
		@throw [OFInitializationFailedException exceptionWithClass: c];
	}

	_initialized = true;

	return self;
75
76
77
78
79
80
81
82

83
84

85
86
87
75
76
77
78
79
80
81

82
83

84

85
86







-
+

-
+
-


	if (!of_mutex_unlock(&_mutex))
		@throw [OFUnlockFailedException exceptionWithLock: self];
}

- (OFString *)description
{
	if (_name == nil)
		return [super description];
		return super.description;

	return [OFString stringWithFormat: @"<%@: %@>",
	return [OFString stringWithFormat: @"<%@: %@>", self.className, _name];
					   [self className], _name];
}
@end