Differences From Artifact [2dc209441b]:
- File
src/autorelease.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: 3258) [annotate] [blame] [check-ins using]
To Artifact [3bbb1328d7]:
- File src/autorelease.m — part of check-in [e35b10115e] at 2014-05-14 20:28:11 on branch trunk — Always use __foo__ instead of foo for attributes (user: js, size: 3262) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
38 39 40 41 42 43 44 | #else static id *objects = NULL; static id *top = NULL; static size_t size = 0; #endif #if !defined(OF_HAVE_COMPILER_TLS) && defined(OF_HAVE_THREADS) | | | 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | #else static id *objects = NULL; static id *top = NULL; static size_t size = 0; #endif #if !defined(OF_HAVE_COMPILER_TLS) && defined(OF_HAVE_THREADS) static void __attribute__((__constructor__)) init(void) { OF_ENSURE(of_tlskey_new(&objectsKey)); OF_ENSURE(of_tlskey_new(&topKey)); OF_ENSURE(of_tlskey_new(&sizeKey)); } #endif |
︙ | ︙ |