From b63e5582a5d3d4d3aefad6b2bafc285caccf7bf7 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 4 Dec 2020 17:18:12 -0800 Subject: Move off libcutils thread_store_*. We're trying to remove libcutils' thread_store_*. This code doesn't just use the EGLThreadInfo destructor so isn't trivially replaced by C++ thread_local, so we use pthread_* directly instead, which also lets us remove some unnecessary Fuchsia portability copy & paste. Test: treehugger Change-Id: Idb4d3fe2554193b7f6bc60f3aab5115bdbddffe0 --- fuchsia/include/cutils/threads.h | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'fuchsia/include') diff --git a/fuchsia/include/cutils/threads.h b/fuchsia/include/cutils/threads.h index 8ea873f0..fc332ddf 100644 --- a/fuchsia/include/cutils/threads.h +++ b/fuchsia/include/cutils/threads.h @@ -3,24 +3,8 @@ #include -typedef struct { - pthread_mutex_t lock; - int has_tls; - pthread_key_t tls; -} thread_store_t; - -#define THREAD_STORE_INITIALIZER { PTHREAD_MUTEX_INITIALIZER, 0, 0 } - extern "C" { -typedef void (*thread_store_destruct_t)(void* value); - -void* thread_store_get(thread_store_t* store); - -void thread_store_set(thread_store_t* store, - void* value, - thread_store_destruct_t destroy); - pid_t gettid(); } -- cgit v1.2.3