mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-17 22:31:44 +08:00
Fix warings in <sys/seq.h>
This commit is contained in:
parent
11750f1f83
commit
b86b09782a
@ -89,7 +89,7 @@ static __inline void
|
|||||||
seq_write_end(seq_t *seqp)
|
seq_write_end(seq_t *seqp)
|
||||||
{
|
{
|
||||||
|
|
||||||
atomic_store_rel_int(seqp, *seqp + 1);
|
atomic_store_rel_32(seqp, *seqp + 1);
|
||||||
MPASS(!seq_in_modify(*seqp));
|
MPASS(!seq_in_modify(*seqp));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -99,7 +99,7 @@ seq_read(const seq_t *seqp)
|
|||||||
seq_t ret;
|
seq_t ret;
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
ret = atomic_load_acq_int(__DECONST(seq_t *, seqp));
|
ret = atomic_load_acq_32(__DECONST(seq_t *, seqp));
|
||||||
if (seq_in_modify(ret)) {
|
if (seq_in_modify(ret)) {
|
||||||
cpu_spinwait();
|
cpu_spinwait();
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user