Overview
Comment: | Prevent + initialize from being called twice. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
e0163c30a98a2cc5ee9a4f72f0c4559a |
User & Date: | js on 2009-05-23 01:59:42 |
Other Links: | manifest | tags |
Context
2009-05-23
| ||
16:50 | A few renames in OFArray, OFDataArray and OFDictionary. check-in: a29d403286 user: js tags: trunk | |
01:59 | Prevent + initialize from being called twice. check-in: e0163c30a9 user: js tags: trunk | |
2009-05-20
| ||
19:59 | Implement OFCopying protocol for OFList. check-in: 5d190947a7 user: js tags: trunk | |
Changes
Modified src/OFAutoreleasePool.m from [4359bf55c9] to [2fd942db62].
︙ | ︙ | |||
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]; |
︙ | ︙ |
Modified src/OFSocket.m from [f1c982e206] to [ae3a81111f].
︙ | ︙ | |||
22 23 24 25 26 27 28 29 30 31 32 33 34 35 | #endif @implementation OFSocket #ifdef _WIN32 + (void)initialize { WSADATA wsa; if (WSAStartup(MAKEWORD(2, 0), &wsa)) @throw [OFInitializationFailedException newWithClass: self]; } #endif - init | > > > | 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | #endif @implementation OFSocket #ifdef _WIN32 + (void)initialize { WSADATA wsa; if (self != [OFSocket class]) return; if (WSAStartup(MAKEWORD(2, 0), &wsa)) @throw [OFInitializationFailedException newWithClass: self]; } #endif - init |
︙ | ︙ |