Overview
Comment: | Rename +[addObjectToTopmostPool:] to +[addObject:]. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
eafb8d18ed2c528722d93a02b757999f |
User & Date: | js on 2010-09-07 09:10:33 |
Other Links: | manifest | tags |
Context
2010-09-07
| ||
09:45 | More compatibility with Apple's Blocks runtime. check-in: 3e8d3a2668 user: js tags: trunk | |
09:10 | Rename +[addObjectToTopmostPool:] to +[addObject:]. check-in: eafb8d18ed user: js tags: trunk | |
2010-09-06
| ||
20:51 | Add missing definitions of Block_{copy,release} to OFBlock.h. check-in: 3f655d43f6 user: js tags: trunk | |
Changes
Modified src/OFAutoreleasePool.h from [219e7884ea] to [5d5e0f8518].
︙ | ︙ | |||
28 29 30 31 32 33 34 | /** * Adds an object to the autorelease pool at the top of the thread-specific * stack. * * \param obj The object to add to the autorelease pool */ | | | 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | /** * Adds an object to the autorelease pool at the top of the thread-specific * stack. * * \param obj The object to add to the autorelease pool */ + (void)addObject: (id)obj; + (void)releaseAll; /** * Adds an object to the specific autorelease pool. * * \param obj The object to add to the autorelease pool |
︙ | ︙ |
Modified src/OFAutoreleasePool.m from [0e3d14e495] to [4e90c8c96d].
︙ | ︙ | |||
35 36 37 38 39 40 41 | return; if (!of_tlskey_new(&first_key) || !of_tlskey_new(&last_key)) @throw [OFInitializationFailedException newWithClass: self]; } #endif | | | 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | return; if (!of_tlskey_new(&first_key) || !of_tlskey_new(&last_key)) @throw [OFInitializationFailedException newWithClass: self]; } #endif + (void)addObject: (id)obj { #ifdef OF_THREADS id last = of_tlskey_get(last_key); #endif if (last == nil) { @try { |
︙ | ︙ |
Modified src/OFBlock.m from [ef0cae1828] to [0aebe6c0fb].
︙ | ︙ | |||
213 214 215 216 217 218 219 | /* * Cache OFAutoreleasePool since class lookups are expensive with the * GNU runtime. */ if (autoreleasepool == Nil) autoreleasepool = [OFAutoreleasePool class]; | | | 213 214 215 216 217 218 219 220 221 222 223 224 | /* * Cache OFAutoreleasePool since class lookups are expensive with the * GNU runtime. */ if (autoreleasepool == Nil) autoreleasepool = [OFAutoreleasePool class]; [autoreleasepool addObject: self]; return self; } @end |
Modified src/OFObject.m from [45b7441d77] to [4840601dc7].
︙ | ︙ | |||
622 623 624 625 626 627 628 | /* * Cache OFAutoreleasePool since class lookups are expensive with the * GNU runtime. */ if (autoreleasepool == Nil) autoreleasepool = [OFAutoreleasePool class]; | | | 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 | /* * Cache OFAutoreleasePool since class lookups are expensive with the * GNU runtime. */ if (autoreleasepool == Nil) autoreleasepool = [OFAutoreleasePool class]; [autoreleasepool addObject: self]; return self; } - (void)dealloc { void **iter = PRE_IVAR->memchunks + PRE_IVAR->memchunks_size; |
︙ | ︙ |