aboutsummaryrefslogtreecommitdiff
path: root/fuchsia/include
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2020-12-04 17:18:12 -0800
committerElliott Hughes <enh@google.com>2020-12-07 08:24:05 -0800
commitb63e5582a5d3d4d3aefad6b2bafc285caccf7bf7 (patch)
tree96a6e849e391d3ae413c859fdb6022fc53380730 /fuchsia/include
parentc2867e2045f961e49afbeed61ad7c17fe8df7cea (diff)
downloadgoldfish-opengl-b63e5582a5d3d4d3aefad6b2bafc285caccf7bf7.tar.gz
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
Diffstat (limited to 'fuchsia/include')
-rw-r--r--fuchsia/include/cutils/threads.h16
1 files changed, 0 insertions, 16 deletions
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 <pthread.h>
-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();
}