Loading system/test/common/main_handler.cc +5 −0 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ #include <future> #include "common/message_loop_thread.h" #include "common/postable_context.h" #include "include/hardware/bluetooth.h" #include "os/log.h" Loading Loading @@ -73,3 +74,7 @@ void main_thread_shut_down() { main_thread.ShutDown(); } // osi_alarm bluetooth::common::MessageLoopThread* get_main_thread() { return &main_thread; } bluetooth::common::PostableContext* get_main() { return main_thread.Postable(); } system/test/common/main_handler.h +2 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ #include <functional> #include "common/message_loop_thread.h" #include "common/postable_context.h" #include "include/hardware/bluetooth.h" using bluetooth::common::MessageLoopThread; Loading @@ -38,3 +39,4 @@ void main_thread_shut_down(); extern const int sync_timeout_in_ms; void sync_main_handler(); bluetooth::common::MessageLoopThread* get_main_thread(); bluetooth::common::PostableContext* get_main(); Loading
system/test/common/main_handler.cc +5 −0 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ #include <future> #include "common/message_loop_thread.h" #include "common/postable_context.h" #include "include/hardware/bluetooth.h" #include "os/log.h" Loading Loading @@ -73,3 +74,7 @@ void main_thread_shut_down() { main_thread.ShutDown(); } // osi_alarm bluetooth::common::MessageLoopThread* get_main_thread() { return &main_thread; } bluetooth::common::PostableContext* get_main() { return main_thread.Postable(); }
system/test/common/main_handler.h +2 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ #include <functional> #include "common/message_loop_thread.h" #include "common/postable_context.h" #include "include/hardware/bluetooth.h" using bluetooth::common::MessageLoopThread; Loading @@ -38,3 +39,4 @@ void main_thread_shut_down(); extern const int sync_timeout_in_ms; void sync_main_handler(); bluetooth::common::MessageLoopThread* get_main_thread(); bluetooth::common::PostableContext* get_main();