examples: use new API to create control threads
authorOlivier Matz <olivier.matz@6wind.com>
Tue, 24 Apr 2018 14:46:51 +0000 (16:46 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 24 Apr 2018 22:51:31 +0000 (00:51 +0200)
commitfa20485454178fd3a8912753a6a2ed6619dc64fb
tree4e1bd9a57a3e2edf5a8eb79037c1032112328f3b
parentd651ee4919cd694d58f6388c10d0af9ed9ae51f3
examples: use new API to create control threads

A new API was introduced to create control thread:
rte_ctrl_thread_create(). Use it in examples when relevant.

While at it, change the prototype of the thread start functions: it's
not a good idea to cast it in (void *) since the compiler won't check
that the prototype is compatible.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
examples/tep_termination/main.c
examples/vhost/main.c