Home
last modified time | relevance | path

Searched refs:Reactor (Results 1 – 13 of 13) sorted by relevance

/packages/modules/Bluetooth/system/gd/os/linux_generic/
Dreactor.cc43 struct Reactor::Event::impl {
57 Reactor::Event::Event() : pimpl_(new impl()) {} in Event()
58 Reactor::Event::~Event() { delete pimpl_; } in ~Event()
60 bool Reactor::Event::Read() { in Read()
64 int Reactor::Event::Id() const { return pimpl_->fd_; } in Id()
65 void Reactor::Event::Clear() { in Clear()
70 void Reactor::Event::Close() { in Close()
76 void Reactor::Event::Notify() { in Notify()
82 class Reactor::Reactable {
99 Reactor::Reactor() : epoll_fd_(0), control_fd_(0), is_running_(false) { in Reactor() function in bluetooth::os::Reactor
[all …]
Dreactor_unittest.cc44 reactor_ = new Reactor; in SetUp()
54 Reactor* reactor_;
80 FakeReactable(Reactor* reactor) : fd_(eventfd(0, 0)), reactor_(reactor) { EXPECT_NE(fd_, -1); } in FakeReactable()
122 Reactor::Reactable* reactable_ = nullptr;
126 Reactor* reactor_;
145 Reactor::Reactable* reactable_ = nullptr;
154 auto reactor_thread = std::thread(&Reactor::Run, reactor_); in TEST_F()
160 auto reactor_thread = std::thread(&Reactor::Stop, reactor_); in TEST_F()
161 auto another_thread = std::thread(&Reactor::Run, reactor_); in TEST_F()
167 auto reactor_thread = std::thread(&Reactor::Run, reactor_); in TEST_F()
[all …]
Dthread.cc67 Reactor* Thread::GetReactor() const { return &reactor_; } in GetReactor()
Dthread_unittest.cc73 Reactor* reactor = thread->GetReactor(); in TEST_F()
/packages/modules/Bluetooth/system/gd/os/
Dreactor.h39 class Reactor {
45 Reactor();
47 Reactor(const Reactor&) = delete;
48 Reactor& operator=(const Reactor&) = delete;
51 ~Reactor();
99 std::unique_ptr<Reactor::Event> NewEvent() const;
Dqueue.h113 Reactor::Reactable* reactable_;
202 Reactor* reactor = nullptr; in UnregisterEnqueue()
203 Reactor::Reactable* to_unregister = nullptr; in UnregisterEnqueue()
233 Reactor* reactor = nullptr; in UnregisterDequeue()
234 Reactor::Reactable* to_unregister = nullptr; in UnregisterDequeue()
Dthread.h66 Reactor* GetReactor() const;
72 mutable Reactor reactor_;
Dhandler.h77 std::unique_ptr<Reactor::Event> event_;
78 Reactor::Reactable* reactable_;
Drepeating_alarm.h55 Reactor::Reactable* token_;
Dalarm.h59 Reactor::Reactable* token_;
/packages/modules/Bluetooth/system/gd/hal/
Dhci_hal_host_rootcanal.cc178 os::Reactor::REACT_ON_READ_ONLY); in Start()
215 bluetooth::os::Reactor::Reactable* reactable_ = nullptr;
224 os::Reactor::REACT_ON_READ_WRITE); in write_to_fd()
241 os::Reactor::REACT_ON_READ_ONLY); in send_packet_ready()
Dhci_hal_host.cc326 os::Reactor::REACT_ON_READ_ONLY); in Start()
368 bluetooth::os::Reactor::Reactable* reactable_ = nullptr;
378 os::Reactor::REACT_ON_READ_WRITE); in write_to_fd()
398 os::Reactor::REACT_ON_READ_ONLY); in send_packet_ready()
/packages/modules/Bluetooth/system/gd/docs/architecture/
Darchitecture.md102 are data packets sent through queues, signaled using [`Reactor`](#reactor). They
175 ### Reactor {#reactor}
177 [`bluetooth::os:Reactor`](https://android.googlesource.com/platform/packages/modules/Bluetooth/syst…
179 [Reactor Design Pattern](https://en.wikipedia.org/wiki/Reactor_pattern), in
207 A pure data use case of `Reactor` is a `Reactive Queue`, see its definition at: