Differences From 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]
To Artifact [0f577bcb9a]:
- File
src/OFAutoreleasePool.m
— part of check-in
[13ee56edf3]
at
2014-06-21 21:43:43
on branch trunk
— Move all macros from OFObject.h to macros.h
This means that OFObject.h imports macros.h now, making it unnecessary
to manually import macros.h in almost every file. And while at it, also
import autorelease.h in OFObject.h, so that this doesn't need to be
manually imported in almost every file as well. (user: js, size: 3309) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
15 16 17 18 19 20 21 | */ #include "config.h" #import "OFAutoreleasePool.h" #import "OFAutoreleasePool+Private.h" | < | < < | 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | */ #include "config.h" #import "OFAutoreleasePool.h" #import "OFAutoreleasePool+Private.h" #if !defined(OF_HAVE_COMPILER_TLS) && defined(OF_HAVE_THREADS) # import "threading.h" # # import "OFInitializationFailedException.h" #endif #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 |
︙ | ︙ |