Differences From Artifact [d441366c61]:
- File
src/OFAutoreleasePool.m
— part of check-in
[4af49a13c3]
at
2017-05-07 20:10:13
on branch trunk
— Small code style change
Casts are now written like types in variable declarations. (user: js, size: 3306) [annotate] [blame] [check-ins using]
To Artifact [e9bf9ceb4f]:
- File
src/OFAutoreleasePool.m
— part of check-in
[6b77a5dd8b]
at
2017-05-21 21:28:57
on branch trunk
— Prefix private methods with of_ instead of OF_
This matches Apple's style. (user: js, size: 3306) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
68 69 70 71 72 73 74 |
}
+ (id)addObject: (id)object
{
return _objc_rootAutorelease(object);
}
| | | | 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 |
}
+ (id)addObject: (id)object
{
return _objc_rootAutorelease(object);
}
+ (void)of_handleThreadTermination
{
#if !defined(OF_HAVE_COMPILER_TLS) && defined(OF_HAVE_THREADS)
OFAutoreleasePool **cache = of_tlskey_get(cacheKey);
#endif
if (cache != NULL) {
for (size_t i = 0; i < MAX_CACHE_SIZE; i++)
[cache[i] of_super_dealloc];
free(cache);
cache = NULL;
}
}
- init
|
| ︙ | ︙ | |||
121 122 123 124 125 126 127 |
}
- (void)drain
{
[self dealloc];
}
| | | 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 |
}
- (void)drain
{
[self dealloc];
}
- (void)of_super_dealloc
{
[super dealloc];
}
- (void)dealloc
{
#if !defined(OF_HAVE_COMPILER_TLS) && defined(OF_HAVE_THREADS)
|
| ︙ | ︙ |