blob: 43c96167f980ebd82086000235e73aafca394dd9 [file] [log] [blame]
John Park33858a32018-09-28 23:05:48 -07001package(default_visibility = ["//visibility:public"])
2
3cc_library(
4 name = "mutex",
5 srcs = [
6 "mutex.cc",
7 ],
8 hdrs = [
9 "mutex.h",
10 ],
John Park33858a32018-09-28 23:05:48 -070011 deps = [
12 "//aos:die",
13 "//aos/type_traits:type_traits",
14 "//aos/logging",
John Park398c74a2018-10-20 21:17:39 -070015 "//aos/ipc_lib:aos_sync",
John Park33858a32018-09-28 23:05:48 -070016 ],
17)
18
19cc_test(
20 name = "mutex_test",
21 srcs = [
22 "mutex_test.cc",
23 ],
24 deps = [
25 "//aos:die",
26 ":mutex",
27 "//aos/time:time",
28 "//aos/logging",
29 "//aos/util:death_test_log_implementation",
30 "//aos/util:thread",
31 "//aos/testing:googletest",
32 "//aos/testing:test_logging",
33 "//aos/testing:test_shm",
34 ],
35)