Closed f18m closed 1 year ago
This is going to be racy - subs are managed in the i/o thread(s), but the option is read from the application thread. At least make it use atomics.
This is going to be racy - subs are managed in the i/o thread(s), but the option is read from the application thread. At least make it use atomics.
good point. I'll change it to use atomics, thanks for the review
@bluca , can you go over this PR again? I have added use of atomics, improve the test_pubsub_num_subscriptions by testing also "nested" prefixes (subscriptions sharing the same initial bytes), and docs.
open points:
CMake Error at tests/CMakeLists.txt:252 (add_executable):
Cannot find source file:
test_pubsub_num_subscriptions.cpp
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
.hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc
CMake Error at tests/CMakeLists.txt:252 (add_executable):
No SOURCES given to target: test_pubsub_num_subscriptions
CMake Error at tests/CMakeLists.txt:252 (add_executable): Cannot find source file: test_pubsub_num_subscriptions.cpp Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc CMake Error at tests/CMakeLists.txt:252 (add_executable): No SOURCES given to target: test_pubsub_num_subscriptions
thanks - should be fixed now (just a bit hard to understand the CI/CD results, and github does not help marking every single commit with "CI failed")
Hi @bluca , can you review this PR ? I think it's ready to go, EXCEPT for the documentation. But before adding that I would like to have some feedback if the way this (simple) feature is implemented is correc.t.. thanks