summaryrefslogtreecommitdiffstats
path: root/vendor/modernc.org/libc/etc.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/modernc.org/libc/etc.go')
-rw-r--r--vendor/modernc.org/libc/etc.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/vendor/modernc.org/libc/etc.go b/vendor/modernc.org/libc/etc.go
index 6e687055..ca188072 100644
--- a/vendor/modernc.org/libc/etc.go
+++ b/vendor/modernc.org/libc/etc.go
@@ -212,6 +212,8 @@ func (t *TLS) Close() {
atomic.AddInt32(&tlsBalance, -1)
}
+ t.pthreadData.close(t)
+ *t = TLS{}
}
// Alloc allocates n bytes of thread-local storage. It must be paired with a
@@ -307,7 +309,7 @@ func (t *TLS) Alloc(n int) (r uintptr) {
return r
}
-//this declares how many stack frames are kept alive before being freed
+// this declares how many stack frames are kept alive before being freed
const stackFrameKeepalive = 2
// Free deallocates n bytes of thread-local storage. See TLS.Alloc for details
@@ -822,7 +824,7 @@ func parseZoneOffset(s string, offOpt bool) (string, string, int, bool) {
return "", s0, 0, true
}
-// [+|-]hh[:mm[:ss]]
+// [+|-]hh[:mm[:ss]]
func parseOffset(s string) (string, int) {
if len(s) == 0 {
panic(todo(""))