1 // Copyright 2021 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 #include "_cgo_export.h"
7 void lockOSThreadC(void) {
8 lockOSThreadCallback();
11 void issue7978c(uint32_t *sync) {
12 while(__atomic_load_n(sync, __ATOMIC_SEQ_CST) != 0)
14 __atomic_add_fetch(sync, 1, __ATOMIC_SEQ_CST);
15 while(__atomic_load_n(sync, __ATOMIC_SEQ_CST) != 2)
18 __atomic_add_fetch(sync, 1, __ATOMIC_SEQ_CST);
19 while(__atomic_load_n(sync, __ATOMIC_SEQ_CST) != 6)