SINGLEBUFFER
Mark Atwood, Project Manager
mark.atwood at ntpsec.org
Fri Sep 21 00:55:57 UTC 2018
Thank you Hal!
On Thu, Sep 20, 2018 at 4:53 PM Hal Murray via devel <devel at ntpsec.org>
wrote:
>
> It's simple, at least conceptually. I'm embarrassed I didn't see it
> (much)
> sooner.
>
> The general idea with the old code is:
>
> From several places deep in ntp_io
> read data into rb
> rb->receiver = xxx
> add_full_recv_buffer(rb)
>
> then way up in ntpd:
> rb = get_full_recv_buffer()
> (rb->receiver)(rb)
> freerecvbuf(rb)
>
> So all we have to do is remove the second chunk and replace the first
> chunk
> with:
> read data into rb
> xxx(rb)
> freerecvbuf(rb)
>
> The first chunk actually happens in several places, one for packets,
> another
> for refclocks, ...
>
> I've got it working. I'll push in a day or so. There is lots of checking
> and
> cleanup to do.
>
>
> --
> These are my opinions. I hate spam.
>
>
>
> _______________________________________________
> devel mailing list
> devel at ntpsec.org
> http://lists.ntpsec.org/mailman/listinfo/devel
>
--
Mark Atwood
http://about.me/markatwood
+1-206-604-2198
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20180920/a5a93092/attachment.html>
More information about the devel
mailing list