summaryrefslogtreecommitdiff
path: root/src/threadstate.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2020-05-15 10:29:41 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2020-10-11 20:07:12 +0100
commit8970acb750ecf4b86883d9ea1a8cb280517e6c86 (patch)
treeba9767f201e1018214ca4434d72d4493e7d89e2a /src/threadstate.h
parentc40d2dc5ff2058bf04d816423507dec42e7dd0cc (diff)
downloadlibgit2-8970acb750ecf4b86883d9ea1a8cb280517e6c86.tar.gz
thread: don't use the global tlsdata for thread exit
We want to store a pointer to emulate `pthread_exit` on Windows. Do this within the threading infrastructure so that it could potentially be re-used outside of the context of libgit2 itself.
Diffstat (limited to 'src/threadstate.h')
-rw-r--r--src/threadstate.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/threadstate.h b/src/threadstate.h
index 9a4ef4d3a..51810a939 100644
--- a/src/threadstate.h
+++ b/src/threadstate.h
@@ -14,12 +14,6 @@ typedef struct {
git_error error_t;
git_buf error_buf;
char oid_fmt[GIT_OID_HEXSZ+1];
-
- /* On Windows, this is the current child thread that was started by
- * `git_thread_create`. This is used to set the thread's exit code
- * when terminated by `git_thread_exit`. It is unused on POSIX.
- */
- git_thread *current_thread;
} git_threadstate;
extern int git_threadstate_global_init(void);