api: configurable binary api client rx pthread fcn 70/23670/2
authorDave Barach <dave@barachs.net>
Thu, 14 Nov 2019 13:03:48 +0000 (08:03 -0500)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Thu, 6 Feb 2020 12:21:23 +0000 (12:21 +0000)
commitb38b04edea16a9c9457415f363ec8d0b5fd98929
tree098fe562085008a2d6a2fe2c225c43b8e9f38b18
parent4b50a8f025053732bc6ad44394f3b83bc854e304
api: configurable binary api client rx pthread fcn

Add vl_client_connect_to_vlib_thread_fn (...) and export the
memory_client_main_t definition.

If you use this new API, make sure not to miss the setjmp / longjmp
dance shown in .../src/vlibmemory/memory_client.c:rx_thread_fn(...),
which is required for the rx pthread to terminate cleanly; please
process client delete reply messages in the rx thread...

Type: refactor

Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: Ia67038ec59e2e14b174c67afca15b2c3f67a4d20
(cherry picked from commit 920180e5e0722c78c258ff26476fd5efa434032d)
src/vlibmemory/memory_client.c
src/vlibmemory/memory_client.h