Yo Daniel!

On Mon, 16 Sep 2019 23:05:55 -0400
Daniel Franke <dfoxfra...@gmail.com> wrote:

> On Mon, Sep 16, 2019, 22:50 Hal Murray via devel <devel@ntpsec.org>
> wrote:
> 
> >
> > The disadvantage of SHM is that there is no way to wake up a reader
> > when new
> > data is available.  Readers have to poll.
> >  
> 
> This is exactly what futexes are for.

From the Linux man page:
       int futex(int *uaddr, int futex_op, int val,
                 const struct timespec *timeout,   /* or: uint32_t val2 */
                 int *uaddr2, int val3);

       Note: There is no glibc wrapper for this system call; see NOTES.

Is there a POSIX alternative?

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        g...@rellim.com  Tel:+1 541 382 8588

            Veritas liberabit vos. -- Quid est veritas?
    "If you can't measure it, you can't improve it." - Lord Kelvin

Attachment: pgpuMHnPe7cJY.pgp
Description: OpenPGP digital signature

_______________________________________________
devel mailing list
devel@ntpsec.org
http://lists.ntpsec.org/mailman/listinfo/devel

Reply via email to