...
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.
4
5#include "_cgo_export.h"
6
7void lockOSThreadC(void) {
8 lockOSThreadCallback();
9}
10
11void issue7978c(uint32_t *sync) {
12 while(__atomic_load_n(sync, __ATOMIC_SEQ_CST) != 0)
13 ;
14 __atomic_add_fetch(sync, 1, __ATOMIC_SEQ_CST);
15 while(__atomic_load_n(sync, __ATOMIC_SEQ_CST) != 2)
16 ;
17 issue7978cb();
18 __atomic_add_fetch(sync, 1, __ATOMIC_SEQ_CST);
19 while(__atomic_load_n(sync, __ATOMIC_SEQ_CST) != 6)
20 ;
21}
22
23void f7665(void) {
24}
View as plain text