[ovs-dev] [PATCH] stopwatch: Explicitly ignore write() return value.

Justin Pettit jpettit at ovn.org
Fri Apr 6 19:53:26 UTC 2018


> On Apr 6, 2018, at 12:27 PM, Mark Michelson <mmichels at redhat.com> wrote:
> 
> I just had a look, and unfortunately, the current code doesn't translate directly to a latch. The reason is that you can't control the data that is sent to and read from the latch. It's essentially a boolean of "set" or "not set". In the current stopwatch implementation, data packets are written to the pipe and that data is then read by another thread. The actual data is important in this case.

I noticed the same thing.  I spoke with Ben off-line, and I'll push my changes (broken into the fix and the style changes) so that we reduce the chances that people run into at least the issue I had.  You'll take care of the bigger change to handle Windows?

Thanks!

--Justin




More information about the dev mailing list