ObjFW  Diff

Differences From Artifact [866049a019]:

To Artifact [2beeb530a3]:


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_rmutex_new(&_rmutex)) {
		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_rmutex_unlock(&_rmutex))
		@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