Files

61 lines
1.4 KiB
Python
Raw Permalink Normal View History

load("//tools:defs.bzl", "go_library", "go_test")
2018-04-27 10:37:02 -07:00
package(
default_applicable_licenses = ["//:license"],
2018-04-27 10:37:02 -07:00
default_visibility = ["//:sandbox"],
2019-01-31 11:11:44 -08:00
licenses = ["notice"],
2018-04-27 10:37:02 -07:00
)
go_library(
2020-01-09 22:00:42 -08:00
name = "sync",
2018-04-27 10:37:02 -07:00
srcs = [
2020-01-09 22:00:42 -08:00
"aliases.go",
"checklocks_off_unsafe.go",
"checklocks_on_unsafe.go",
"fence.go",
"fence_amd64.s",
"fence_arm64.s",
2021-02-24 11:55:02 -08:00
"gate_unsafe.go",
"goyield_go113_unsafe.go",
"goyield_unsafe.go",
"mutex_unsafe.go",
2020-07-12 17:20:50 -07:00
"nocopy.go",
2018-04-27 10:37:02 -07:00
"norace_unsafe.go",
"race_amd64.s",
"race_arm64.s",
2018-04-27 10:37:02 -07:00
"race_unsafe.go",
2023-02-23 13:13:37 -08:00
"runtime.go",
"runtime_amd64.go",
2023-02-23 13:13:37 -08:00
"runtime_constants.go",
"runtime_exectracer2.go",
2023-07-21 11:19:06 -07:00
"runtime_go121_unsafe.go",
2024-12-04 08:23:03 -08:00
"runtime_go124_unsafe.go",
2023-07-21 11:19:06 -07:00
"runtime_not_go121_unsafe.go",
"runtime_other.go",
2023-02-23 13:13:37 -08:00
"runtime_spinning_amd64.s",
"runtime_spinning_other.s",
"runtime_unsafe.go",
"rwmutex_unsafe.go",
2018-04-27 10:37:02 -07:00
"seqcount.go",
"sync.go",
2018-04-27 10:37:02 -07:00
],
marshal = False,
stateify = False,
2021-01-28 09:28:51 -08:00
visibility = ["//:sandbox"],
deps = [
2021-02-24 11:55:02 -08:00
"//pkg/gohacks",
"//pkg/goid",
],
2018-04-27 10:37:02 -07:00
)
go_test(
2020-01-09 22:00:42 -08:00
name = "sync_test",
2018-04-27 10:37:02 -07:00
size = "small",
srcs = [
2021-02-24 11:55:02 -08:00
"gate_test.go",
"rwmutex_test.go",
2018-04-27 10:37:02 -07:00
"seqcount_test.go",
],
2020-01-27 10:04:07 -08:00
library = ":sync",
2018-04-27 10:37:02 -07:00
)