summaryrefslogtreecommitdiffstats
path: root/vendor/modernc.org/libc/etc.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2022-11-27 00:42:16 +0100
committerGitHub <noreply@github.com>2022-11-27 00:42:16 +0100
commit4fd0a7672777f0ed15692ae2ba47838208537558 (patch)
treeb119834a8b9ee78aa8f1b2ad05efa7da50516cbf /vendor/modernc.org/libc/etc.go
parent6da9d567dc9195e9a5211f23a6795a41f56a1bfc (diff)
downloadmatterbridge-msglm-4fd0a7672777f0ed15692ae2ba47838208537558.tar.gz
matterbridge-msglm-4fd0a7672777f0ed15692ae2ba47838208537558.tar.bz2
matterbridge-msglm-4fd0a7672777f0ed15692ae2ba47838208537558.zip
Update dependencies (#1929)
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(""))