Author: mjg
Date: Mon Feb 3 22:26:29 2020
New Revision: 357468
URL: https://svnweb.freebsd.org/changeset/base/357468
Log:
seqc: provide seqc_read_any
Modified:
head/sys/sys/seqc.h
Modified: head/sys/sys/seqc.h
==============================================================================
--- head/sys/sys/seqc.h Mon Feb 3 22:26:00 2020 (r357467)
+++ head/sys/sys/seqc.h Mon Feb 3 22:26:29 2020 (r357468)
@@ -72,6 +72,13 @@ seqc_write_end(seqc_t *seqcp)
}
static __inline seqc_t
+seqc_read_any(const seqc_t *seqcp)
+{
+
+ return (atomic_load_acq_int(__DECONST(seqc_t *, seqcp)));
+}
+
+static __inline seqc_t
seqc_read(const seqc_t *seqcp)
{
seqc_t ret;
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"