Please https://fdio-vpp.readthedocs.io/en/latest/gettingstarted/developers/vlib.html, scroll down to Process / thread model and read through “Process events.”
This shows how to start a lightweight (data-plane) thread which can wake up every N seconds and do something. This may not be the exact thing you need. You’ll need to explain what you’re doing in more detail if you need a more insightful answer. HTH... Dave From: [email protected] <[email protected]> On Behalf Of Ashish Prajapati Sent: Tuesday, July 23, 2019 9:32 AM To: [email protected] Subject: Re: [vpp-dev] To trigger a callback function in a regular x interval, looking for a sample timer API usage test program in VPP platform. Hi Dave, Thanks for the quick reply, interval x = 30secs and code will be running in the dataplane (in my_plugin) Regards, Ashish
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13549): https://lists.fd.io/g/vpp-dev/message/13549 Mute This Topic: https://lists.fd.io/mt/32571639/21656 Group Owner: [email protected] Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
