From 4fd0a7672777f0ed15692ae2ba47838208537558 Mon Sep 17 00:00:00 2001 From: Wim Date: Sun, 27 Nov 2022 00:42:16 +0100 Subject: Update dependencies (#1929) --- vendor/modernc.org/libc/pthread.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'vendor/modernc.org/libc/pthread.go') diff --git a/vendor/modernc.org/libc/pthread.go b/vendor/modernc.org/libc/pthread.go index 565086ec..06792905 100644 --- a/vendor/modernc.org/libc/pthread.go +++ b/vendor/modernc.org/libc/pthread.go @@ -87,6 +87,14 @@ func (d *pthreadData) init(t *TLS, detached bool) { threads[t.ID] = t } +func (d *pthreadData) close(t *TLS) { + threadsMu.Lock() + + defer threadsMu.Unlock() + + delete(threads, t.ID) +} + // int pthread_attr_destroy(pthread_attr_t *attr); func Xpthread_attr_destroy(t *TLS, pAttr uintptr) int32 { return 0 -- cgit v1.2.3