[ntcore] Revamp listeners (#4511)

- In both C++ and Java, add listener functions to Instance class (same as NT3 provided)
- Add WaitForListenerQueue functions (same as NT3 provided)
- Move Java non-poller implementation to Instance (previously only handled single instance)
- Change C++ listeners to take non-const references for subscribers etc to help avoid footguns from use of temporary objects (also add doc comment)
- Fix Preferences making .type persistent
This commit is contained in:
Peter Johnson
2022-10-24 23:27:24 -07:00
committed by GitHub
parent dcfa85a5d5
commit 794669b346
35 changed files with 1222 additions and 589 deletions

View File

@@ -220,6 +220,9 @@ NT_StopServer
NT_Subscribe
NT_Unpublish
NT_Unsubscribe
NT_WaitForConnectionListenerQueue
NT_WaitForTopicListenerQueue
NT_WaitForValueListenerQueue
WPI_CreateEvent
WPI_CreateSemaphore
WPI_CreateSignalObject