• Alessandro Rubini's avatar
    stats: use a sequence number · 9cebdc65
    Alessandro Rubini authored
    If the host wants a consistent view (*if* it wants it), it
    can wait for the sequence number to be even, read the lot and
    then check it did not change.
    
    If it is odd, it means the structure is being modified. If it changed
    after reading it means a new modification started.
    
    Not my invention: it's old stuff, though smart. See sequential locks
    in the kernel for example.
    Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
    9cebdc65
Name
Last commit
Last update
arch/lm32 Loading commit data...
boards/arria Loading commit data...
configs Loading commit data...
dev Loading commit data...
doc Loading commit data...
include Loading commit data...
ipc Loading commit data...
lib Loading commit data...
monitor Loading commit data...
pp_printf Loading commit data...
ppsi @ 674acb42
scripts Loading commit data...
sdb-lib Loading commit data...
shell Loading commit data...
softpll Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
COPYING Loading commit data...
Kconfig Loading commit data...
MAKEALL Loading commit data...
Makefile Loading commit data...
Makefile.kconfig Loading commit data...
bigobj.lds Loading commit data...
check-error.c Loading commit data...
revision.c Loading commit data...
wrc_main.c Loading commit data...
wrc_ptp.h Loading commit data...
wrc_ptp_noposix.c Loading commit data...
wrs_main.c Loading commit data...