163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
|
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
|
-
-
+
+
-
-
+
+
-
|
}
return self;
}
- lock
{
/* FIXME: Add error-handling */
of_mutex_lock(&mutex);
if (!of_mutex_lock(&mutex))
@throw [OFMutexLockFailedException newWithClass: isa];
return self;
}
- unlock
{
/* FIXME: Add error-handling */
of_mutex_unlock(&mutex);
if (!of_mutex_unlock(&mutex))
@throw [OFMutexUnlockFailedException newWithClass: isa];
return self;
}
- (void)dealloc
{
/* FIXME: Add error-handling */
of_mutex_free(&mutex);
[super dealloc];
}
@end
|