diff options
Diffstat (limited to 'third_party/gvsync/BUILD')
-rw-r--r-- | third_party/gvsync/BUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/third_party/gvsync/BUILD b/third_party/gvsync/BUILD new file mode 100644 index 000000000..4764eaa83 --- /dev/null +++ b/third_party/gvsync/BUILD @@ -0,0 +1,50 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") + +package( + default_visibility = ["//:sandbox"], + licenses = ["notice"], +) + +load("//tools/go_generics:defs.bzl", "go_template") + +go_template( + name = "generic_atomicptr", + srcs = ["atomicptr_unsafe.go"], + types = [ + "Value", + ], +) + +go_template( + name = "generic_seqatomic", + srcs = ["seqatomic_unsafe.go"], + types = [ + "Value", + ], + deps = [ + ":sync", + ], +) + +go_library( + name = "gvsync", + srcs = [ + "downgradable_rwmutex_unsafe.go", + "gvsync.go", + "memmove_unsafe.go", + "norace_unsafe.go", + "race_unsafe.go", + "seqcount.go", + ], + importpath = "gvisor.googlesource.com/gvisor/third_party/gvsync", +) + +go_test( + name = "gvsync_test", + size = "small", + srcs = [ + "downgradable_rwmutex_test.go", + "seqcount_test.go", + ], + embed = [":gvsync"], +) |