Differences From Artifact [afda14705e]:
- File src/OFAutoreleasePool.m — part of check-in [3b97fc3cd9] at 2014-01-04 00:24:08 on branch trunk — Update copyright. (user: js, size: 3348) [annotate] [blame] [check-ins using]
To Artifact [c6736b8348]:
- File
src/OFAutoreleasePool.m
— part of check-in
[c701e89b83]
at
2014-05-14 20:19:05
on branch trunk
— Use thread_local instead of __thread
If threads.h exists, the thread_local from there is used. If it doesn't,
but _Thread_local exists, it's defined to that. As a last fallback, it
is defined to __thread. (user: js, size: 3352) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
27 28 29 30 31 32 33 | #endif #import "autorelease.h" #define MAX_CACHE_SIZE 0x20 #if defined(OF_HAVE_COMPILER_TLS) | | | 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | #endif #import "autorelease.h" #define MAX_CACHE_SIZE 0x20 #if defined(OF_HAVE_COMPILER_TLS) static thread_local OFAutoreleasePool **cache = NULL; #elif defined(OF_HAVE_THREADS) static of_tlskey_t cacheKey; #else static OFAutoreleasePool **cache = NULL; #endif @implementation OFAutoreleasePool |
︙ | ︙ |