Worker threads are created with odph_linux_pthread_create()
which calls odp_local_init() before entering the function.

Signed-off-by: Petri Savolainen <[email protected]>
---
 example/classifier/odp_classifier.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/example/classifier/odp_classifier.c 
b/example/classifier/odp_classifier.c
index d78eb7b..35d9684 100644
--- a/example/classifier/odp_classifier.c
+++ b/example/classifier/odp_classifier.c
@@ -249,13 +249,6 @@ static void *pktio_receive_thread(void *arg)
        appl_args_t *appl = (appl_args_t *)arg;
        global_statistics *stats;
 
-
-       /* Init this thread */
-       if (odp_init_local()) {
-               EXAMPLE_ERR("ODP thread local init failed.\n");
-               exit(EXIT_FAILURE);
-       }
-
        /* Loop packets */
        for (;;) {
                odp_pktio_t pktio_tmp;
-- 
2.4.0

_______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to