| 409 | } |
| 410 | |
| 411 | static inline struct thread_local_data *get_thread_data(void) |
| 412 | { |
| 413 | if (HAVE_THREADS) { |
| 414 | if (threads_active) |
| 415 | return pthread_getspecific(key); |
| 416 | assert(!threads_active && |
| 417 | "This should only be reached when all threads are gone"); |
| 418 | } |
| 419 | return ¬hread_data; |
| 420 | } |
| 421 | |
| 422 | static void set_thread_data(struct thread_local_data *data) |
| 423 | { |
no test coverage detected