63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
#endif
}
+ (void)addToPool: (OFObject*)obj
{
OFList *pool_list = get_tls(pool_list_key);
if (pool_list == nil) {
[[self alloc] init];
pool_list = get_tls(pool_list_key);
}
if (pool_list == nil || [pool_list last] == NULL)
@throw [OFInitializationFailedException newWithClass: self];
|
|
|
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
#endif
}
+ (void)addToPool: (OFObject*)obj
{
OFList *pool_list = get_tls(pool_list_key);
if (pool_list == nil || [pool_list last] == NULL) {
[[self alloc] init];
pool_list = get_tls(pool_list_key);
}
if (pool_list == nil || [pool_list last] == NULL)
@throw [OFInitializationFailedException newWithClass: self];
|