blob: 6acccd7c99c1c914d043c09a4d19395a835bd985 [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 ],
11 compatible_with = [
12 "//tools:armhf-debian",
13 ],
14 deps = [
15 "//aos:die",
16 "//aos/type_traits:type_traits",
17 "//aos/logging",
John Park398c74a2018-10-20 21:17:39 -070018 "//aos/ipc_lib:aos_sync",
John Park33858a32018-09-28 23:05:48 -070019 ],
20)
21
22cc_test(
23 name = "mutex_test",
24 srcs = [
25 "mutex_test.cc",
26 ],
27 deps = [
28 "//aos:die",
29 ":mutex",
30 "//aos/time:time",
31 "//aos/logging",
32 "//aos/util:death_test_log_implementation",
33 "//aos/util:thread",
34 "//aos/testing:googletest",
35 "//aos/testing:test_logging",
36 "//aos/testing:test_shm",
37 ],
38)