summaryrefslogtreecommitdiffhomepage
path: root/pkg/syncevent/BUILD
blob: 0500a22cf556171679ef141023b681726eefb9ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
load("//tools:defs.bzl", "go_library", "go_test")

licenses(["notice"])

go_library(
    name = "syncevent",
    srcs = [
        "broadcaster.go",
        "receiver.go",
        "source.go",
        "syncevent.go",
        "waiter_amd64.s",
        "waiter_arm64.s",
        "waiter_asm_unsafe.go",
        "waiter_noasm_unsafe.go",
        "waiter_unsafe.go",
    ],
    visibility = ["//:sandbox"],
    deps = [
        "//pkg/atomicbitops",
        "//pkg/sync",
    ],
)

go_test(
    name = "syncevent_test",
    size = "small",
    srcs = [
        "broadcaster_test.go",
        "syncevent_example_test.go",
        "waiter_test.go",
    ],
    library = ":syncevent",
    deps = [
        "//pkg/sleep",
        "//pkg/sync",
        "//pkg/waiter",
    ],
)