Future directions
Gary E. Miller
gem at rellim.com
Tue Sep 17 03:27:21 UTC 2019
Yo Daniel!
On Mon, 16 Sep 2019 23:05:55 -0400
Daniel Franke <dfoxfranke at gmail.com> wrote:
> On Mon, Sep 16, 2019, 22:50 Hal Murray via devel <devel at 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
gem at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 851 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20190916/299a73ac/attachment.bin>
More information about the devel
mailing list