diff options
| author | 2025-03-09 17:47:56 +0100 | |
|---|---|---|
| committer | 2025-12-01 22:08:04 +0100 | |
| commit | b1af8fd87760b34e3ff2fd3bda38f211815a0473 (patch) | |
| tree | 9317fad1a7ec298d7a8d2678e4e422953bbc6f33 /vendor/modernc.org/libc/sync.go | |
| parent | [chore] update URLs to forked source (diff) | |
| download | gotosocial-b1af8fd87760b34e3ff2fd3bda38f211815a0473.tar.xz | |
[chore] remove vendor
Diffstat (limited to 'vendor/modernc.org/libc/sync.go')
| -rw-r--r-- | vendor/modernc.org/libc/sync.go | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/vendor/modernc.org/libc/sync.go b/vendor/modernc.org/libc/sync.go deleted file mode 100644 index ca78d2fc3..000000000 --- a/vendor/modernc.org/libc/sync.go +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright 2021 The Libc Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -//go:build !(linux && (amd64 || arm64 || loong64 || ppc64le || s390x || riscv64 || 386 || arm)) - -package libc // import "modernc.org/libc" - -import ( - "sync/atomic" -) - -var __sync_synchronize_dummy int32 - -// __sync_synchronize(); -func X__sync_synchronize(t *TLS) { - if __ccgo_strace { - trc("t=%v, (%v:)", t, origin(2)) - } - // Attempt to implement a full memory barrier without assembler. - atomic.StoreInt32(&__sync_synchronize_dummy, atomic.LoadInt32(&__sync_synchronize_dummy)+1) -} |
