Parker Schuh | e4a70d6 | 2017-12-27 20:10:20 -0800 | [diff] [blame] | 1 | cc_library( |
Austin Schuh | 6b6dfa5 | 2019-06-12 20:16:20 -0700 | [diff] [blame] | 2 | name = "epoll", |
| 3 | srcs = ["epoll.cc"], |
| 4 | hdrs = ["epoll.h"], |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 5 | visibility = ["//visibility:public"], |
Austin Schuh | 6b6dfa5 | 2019-06-12 20:16:20 -0700 | [diff] [blame] | 6 | deps = [ |
Austin Schuh | 6b6dfa5 | 2019-06-12 20:16:20 -0700 | [diff] [blame] | 7 | "//aos/time", |
Austin Schuh | f257f3c | 2019-10-27 21:00:43 -0700 | [diff] [blame] | 8 | "@com_github_google_glog//:glog", |
Austin Schuh | 6b6dfa5 | 2019-06-12 20:16:20 -0700 | [diff] [blame] | 9 | ], |
| 10 | ) |
| 11 | |
| 12 | cc_library( |
Austin Schuh | a1654ed | 2019-01-27 17:24:54 -0800 | [diff] [blame] | 13 | name = "raw-event-loop", |
| 14 | hdrs = ["raw-event-loop.h"], |
| 15 | deps = [ |
| 16 | "//aos:queues", |
| 17 | "//aos/time", |
| 18 | ], |
Parker Schuh | e4a70d6 | 2017-12-27 20:10:20 -0800 | [diff] [blame] | 19 | ) |
| 20 | |
| 21 | cc_library( |
Austin Schuh | a1654ed | 2019-01-27 17:24:54 -0800 | [diff] [blame] | 22 | name = "event-loop", |
| 23 | srcs = ["event-loop-tmpl.h"], |
| 24 | hdrs = [ |
| 25 | "event-loop.h", |
| 26 | "raw-event-loop.h", |
| 27 | ], |
| 28 | visibility = ["//visibility:public"], |
| 29 | deps = [ |
| 30 | ":raw-event-loop", |
| 31 | "//aos:queues", |
| 32 | "//aos/time", |
| 33 | ], |
Parker Schuh | e4a70d6 | 2017-12-27 20:10:20 -0800 | [diff] [blame] | 34 | ) |
| 35 | |
| 36 | cc_library( |
Austin Schuh | a1654ed | 2019-01-27 17:24:54 -0800 | [diff] [blame] | 37 | name = "shm-event-loop", |
| 38 | srcs = ["shm-event-loop.cc"], |
| 39 | hdrs = ["shm-event-loop.h"], |
| 40 | visibility = ["//visibility:public"], |
| 41 | deps = [ |
Austin Schuh | 6b6dfa5 | 2019-06-12 20:16:20 -0700 | [diff] [blame] | 42 | ":epoll", |
Austin Schuh | a1654ed | 2019-01-27 17:24:54 -0800 | [diff] [blame] | 43 | ":event-loop", |
Austin Schuh | 3115a20 | 2019-05-27 21:02:14 -0700 | [diff] [blame] | 44 | "//aos:init", |
Austin Schuh | a1654ed | 2019-01-27 17:24:54 -0800 | [diff] [blame] | 45 | "//aos:queues", |
| 46 | "//aos/logging", |
Austin Schuh | 52d325c | 2019-06-23 18:59:06 -0700 | [diff] [blame] | 47 | "//aos/util:phased_loop", |
Austin Schuh | a1654ed | 2019-01-27 17:24:54 -0800 | [diff] [blame] | 48 | ], |
Parker Schuh | e4a70d6 | 2017-12-27 20:10:20 -0800 | [diff] [blame] | 49 | ) |
| 50 | |
| 51 | cc_test( |
Austin Schuh | a1654ed | 2019-01-27 17:24:54 -0800 | [diff] [blame] | 52 | name = "shm-event-loop_test", |
| 53 | srcs = ["shm-event-loop_test.cc"], |
Austin Schuh | 6b6dfa5 | 2019-06-12 20:16:20 -0700 | [diff] [blame] | 54 | shard_count = 5, |
Austin Schuh | a1654ed | 2019-01-27 17:24:54 -0800 | [diff] [blame] | 55 | deps = [ |
| 56 | ":event-loop_param_test", |
| 57 | ":shm-event-loop", |
| 58 | "//aos/testing:test_shm", |
| 59 | ], |
Parker Schuh | e4a70d6 | 2017-12-27 20:10:20 -0800 | [diff] [blame] | 60 | ) |
| 61 | |
| 62 | cc_library( |
Austin Schuh | a1654ed | 2019-01-27 17:24:54 -0800 | [diff] [blame] | 63 | name = "event-loop_param_test", |
| 64 | testonly = True, |
| 65 | srcs = ["event-loop_param_test.cc"], |
| 66 | hdrs = ["event-loop_param_test.h"], |
| 67 | deps = [ |
Austin Schuh | 9fe68f7 | 2019-08-10 19:32:03 -0700 | [diff] [blame] | 68 | ":event-loop", |
| 69 | "//aos/logging:queue_logging", |
Austin Schuh | a1654ed | 2019-01-27 17:24:54 -0800 | [diff] [blame] | 70 | "//aos/testing:googletest", |
| 71 | ], |
Parker Schuh | e4a70d6 | 2017-12-27 20:10:20 -0800 | [diff] [blame] | 72 | ) |
Neil Balch | c8f41ed | 2018-01-20 22:06:53 -0800 | [diff] [blame] | 73 | |
| 74 | cc_test( |
Austin Schuh | 7267c53 | 2019-05-19 19:55:53 -0700 | [diff] [blame] | 75 | name = "simulated_event_loop_test", |
Austin Schuh | a1654ed | 2019-01-27 17:24:54 -0800 | [diff] [blame] | 76 | srcs = ["simulated-event-loop_test.cc"], |
| 77 | deps = [ |
| 78 | ":event-loop_param_test", |
Austin Schuh | 7267c53 | 2019-05-19 19:55:53 -0700 | [diff] [blame] | 79 | ":simulated_event_loop", |
Austin Schuh | a1654ed | 2019-01-27 17:24:54 -0800 | [diff] [blame] | 80 | "//aos/testing:googletest", |
| 81 | ], |
Neil Balch | c8f41ed | 2018-01-20 22:06:53 -0800 | [diff] [blame] | 82 | ) |
| 83 | |
| 84 | cc_library( |
Austin Schuh | 7267c53 | 2019-05-19 19:55:53 -0700 | [diff] [blame] | 85 | name = "simulated_event_loop", |
Austin Schuh | 82c0c82 | 2019-05-27 19:55:20 -0700 | [diff] [blame] | 86 | testonly = True, |
Austin Schuh | a1654ed | 2019-01-27 17:24:54 -0800 | [diff] [blame] | 87 | srcs = ["simulated-event-loop.cc"], |
| 88 | hdrs = ["simulated-event-loop.h"], |
Austin Schuh | 7267c53 | 2019-05-19 19:55:53 -0700 | [diff] [blame] | 89 | visibility = ["//visibility:public"], |
Austin Schuh | a1654ed | 2019-01-27 17:24:54 -0800 | [diff] [blame] | 90 | deps = [ |
| 91 | ":event-loop", |
| 92 | "//aos:queues", |
James Kuszmaul | c79768b | 2019-02-18 15:08:44 -0800 | [diff] [blame] | 93 | "//aos/logging", |
Austin Schuh | 82c0c82 | 2019-05-27 19:55:20 -0700 | [diff] [blame] | 94 | "//aos/testing:test_logging", |
Austin Schuh | 52d325c | 2019-06-23 18:59:06 -0700 | [diff] [blame] | 95 | "//aos/util:phased_loop", |
Austin Schuh | a1654ed | 2019-01-27 17:24:54 -0800 | [diff] [blame] | 96 | ], |
Neil Balch | c8f41ed | 2018-01-20 22:06:53 -0800 | [diff] [blame] | 97 | ) |