34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
[(OFList*)list release];
}
@implementation OFAutoreleasePool
+ (void)initialize
{
pool_list_key = [[OFTLSKey alloc] initWithDestructor: release_list];
}
+ (void)addToPool: (OFObject*)obj
{
OFList *pool_list = [OFThread objectForTLSKey: pool_list_key];
|
>
>
>
|
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
[(OFList*)list release];
}
@implementation OFAutoreleasePool
+ (void)initialize
{
if (self != [OFAutoreleasePool class])
return;
pool_list_key = [[OFTLSKey alloc] initWithDestructor: release_list];
}
+ (void)addToPool: (OFObject*)obj
{
OFList *pool_list = [OFThread objectForTLSKey: pool_list_key];
|