Re: [vpp-dev] Regarding communication from main thread to worker threads

2018-11-11 Thread Dave Barach via Lists.Fd.Io
-Original Message- > From: vpp-dev@lists.fd.io On Behalf Of Prashant > Upadhyaya > Sent: Sunday, November 11, 2018 2:37 AM > To: vpp-dev@lists.fd.io > Subject: [vpp-dev] Regarding communication from main thread to worker > threads > > Hi, > > The function, vl

Re: [vpp-dev] Regarding communication from main thread to worker threads

2018-11-11 Thread Prashant Upadhyaya
; From: vpp-dev@lists.fd.io On Behalf Of Prashant > Upadhyaya > Sent: Sunday, November 11, 2018 2:37 AM > To: vpp-dev@lists.fd.io > Subject: [vpp-dev] Regarding communication from main thread to worker threads > > Hi, > > The function, vl_api_rpc_call_main_thread, is useful

Re: [vpp-dev] Regarding communication from main thread to worker threads

2018-11-11 Thread Dave Barach via Lists.Fd.Io
Check out src/plugins/perfmon/perfmon_periodic.c for one take on that problem... Dave -Original Message- From: vpp-dev@lists.fd.io On Behalf Of Prashant Upadhyaya Sent: Sunday, November 11, 2018 2:37 AM To: vpp-dev@lists.fd.io Subject: [vpp-dev] Regarding communication from main thread

[vpp-dev] Regarding communication from main thread to worker threads

2018-11-10 Thread Prashant Upadhyaya
Hi, The function, vl_api_rpc_call_main_thread, is useful to do message transfer from worker thread to the main thread. Is there any mechanism where I can call a function in worker thread from the main thread ? That is, just the reverse of the above. I can use interrupts (vlib_node_set_interrupt_