From 17f2a7bbf25f54dbd71aa8f377875828b7b88e35 Mon Sep 17 00:00:00 2001 From: Jakub Grajciar Date: Wed, 31 Jul 2019 14:40:52 +0200 Subject: libmemif: introduce 'memif_per_thread_' namespace APIs in 'memif_per_thread_' namespace are used to split the global database into separate databases, to improve multi-thread use cases. Using 'memif_per_thread_init' client can create separate libmemif databases (libmemif_main_t). Client will reference these databases using memif_per_thread_handle_t. Each database requires unique socket. Created interface will be stored in the same database as the socket passed in connection arguments. Example code: extras/libmemif/examples/icmp_responder_3-1/main.c Type: feature Signed-off-by: Jakub Grajciar Change-Id: I261563ecc34761a76e94f20c20015394398ddfd7 Signed-off-by: Jakub Grajciar --- extras/libmemif/test/main_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extras/libmemif/test/main_test.c') diff --git a/extras/libmemif/test/main_test.c b/extras/libmemif/test/main_test.c index 0a8e091f395..8ad9961157f 100644 --- a/extras/libmemif/test/main_test.c +++ b/extras/libmemif/test/main_test.c @@ -94,7 +94,7 @@ START_TEST (test_init_epoll) ck_assert_ptr_ne (lm, NULL); ck_assert_ptr_ne (lm->control_fd_update, NULL); ck_assert_int_gt (lm->timerfd, 2); - ck_assert_int_gt (memif_epfd, -1); + ck_assert_int_gt (lm->epfd, -1); if (lm->timerfd > 0) close (lm->timerfd); -- cgit 1.2.3-korg