gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ✘Input device permissions


From: Hal Murray
Subject: Re: ✘Input device permissions
Date: Mon, 13 Apr 2020 20:19:30 -0700

address@hidden said:
> I'm open to suggestions, but not something I have thought about in a long
> time.  Got suggestions?

No details, but the general idea is to use 2 counters.

Writer does:
  X++
  update data
  Y = X

Reader does
  Z = Y
  grab data
  if Z==X then good

The key idea is that the reader checks X and Y in the opposite order from the 
writer updating them.

--------

Is there anything other than the stuff in the current struct that you would 
like to add?



-- 
These are my opinions.  I hate spam.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]