Commit Graph

8 Commits

Author SHA1 Message Date
Kacper Rączy 4e063ca166
FakeSubSocket and FakePubSocket for IPC synchronization (#439)
* Implementation of FakeSubSocket and FakePubSocket using eventfd with support for one-in/one-out synchronization

* Expose FakeEvent to Python

* Add demo showcasing synchronization between processes

* Fix linter errors

* Expose more FakeEvent APIs in Python bindings

* Add FakePoller implementation

* Remove suffix from poll env vars

* Set poller timeout to zero when events are enabled

* Replace poll with ppoll. Add invalidation methods

* Fix lint issues

* Fix comment indent

* Remove fake_demo

* Remove FakePubSocket. Simpler FakePoller implementation. Ability to wait for multiple events

* Rename FakeEvent to Event and move it to event.cc

* Rename event purpose constants in py

* Add support for timeout in wait methods

* Add tests for events and fake sockets

* Fix lint errors

* Add zmq sleeps

* Temporarly disable TestFakeSockets on ZMQ

* Add exception type specifiers to test_fake

* Event Manager implementation

* Fix fake sockets tests

* Update EventManager API

* Add test for enable/disable

* Add tests for cereal prefix

* Remove EventPurpose from python bindings

* Fix lint issues

* event_state_shm_mmap implementation shared by EventManager and FakeSubSocket

* Rename EventManager to SocketEventHandle

* More renames
2023-05-23 19:38:52 +02:00
Adeeb Shihadeh 6e58b293ee
include from project root (#402) 2022-12-31 14:19:29 -08:00
Adeeb Shihadeh 3be0bf50c8 rename headers: hpp -> h 2021-05-03 20:40:36 -07:00
Joost Wooning 957147cb84
some fixes and small changes for locationd in c++ (#135)
* Added getters

* extra service to ack messages in process replay

* fix allAliveAndValid ignoring ignoreValid services

* check if readers are updated

* default message valid true
2021-04-19 17:28:06 +02:00
Willem Melching 3b753be905
Implement error handling and exceptions (#18)
* implement error handling and exceptions

* Add test for MultiplePublisherError

* add some more tests
2019-12-04 23:05:20 +01:00
Willem Melching f6a8e394a2 add test with multiple subscribers 2019-11-21 13:14:31 -08:00
Willem Melching 090218200e remote address support 2019-11-04 13:08:11 -08:00
George Hotz 23ad2563c4 import messaging and services 2019-11-01 09:31:59 -07:00