forked from pingcap/tidb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
46 lines (44 loc) · 1.14 KB
/
BUILD.bazel
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
40
41
42
43
44
45
46
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "spmc",
srcs = [
"option.go",
"spmcpool.go",
"worker.go",
"worker_loop_queue.go",
],
importpath = "github.com/pingcap/tidb/util/gpool/spmc",
visibility = ["//visibility:public"],
deps = [
"//resourcemanager",
"//resourcemanager/pooltask",
"//resourcemanager/util",
"//util/gpool",
"//util/logutil",
"@com_github_pingcap_errors//:errors",
"@com_github_pingcap_log//:log",
"@org_uber_go_atomic//:atomic",
"@org_uber_go_zap//:zap",
],
)
go_test(
name = "spmc_test",
srcs = [
"main_test.go",
"spmcpool_benchmark_test.go",
"spmcpool_test.go",
"worker_loop_queue_test.go",
],
embed = [":spmc"],
race = "on",
deps = [
"//resourcemanager/pooltask",
"//resourcemanager/util",
"//testkit/testsetup",
"//util",
"//util/gpool",
"@com_github_stretchr_testify//require",
"@org_uber_go_atomic//:atomic",
"@org_uber_go_goleak//:goleak",
],
)