api: configurable binary api client rx pthread fcn 27/23427/2
authorDave Barach <dave@barachs.net>
Thu, 14 Nov 2019 13:03:48 +0000 (08:03 -0500)
committerFlorin Coras <florin.coras@gmail.com>
Mon, 18 Nov 2019 15:03:21 +0000 (15:03 +0000)
commit920180e5e0722c78c258ff26476fd5efa434032d
treeeb67c9ed76ad6e90c8a640f817ac09dbe5724d07
parentd14fccd6d51569b0f025af57c830b873afcc18e3
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
src/vlibmemory/memory_client.c
src/vlibmemory/memory_client.h