[ovs-dev] [PATCH 1/2] coverage: Reimplement the "ovs-appctl coverage/show" command

Ben Pfaff blp at nicira.com
Fri Aug 30 04:14:04 UTC 2013


On Tue, Aug 27, 2013 at 04:55:51PM -0700, Alex Wang wrote:
> > or we could devise a way to have poll_block() or coverage_run() figure out
> > which thread is the "main thread".
> 
> I could remember the thread id of the daemons that need to run it. Could
> you share some more thoughts on this direction?

One way would be to use ovsthread_id_self().  This is always 0 in the
initial thread of a program.  (That is not currently documented, so we
would want to document it before relying on it.)



More information about the dev mailing list