Fix issue with atomic variables needing writable variable even for reading only.
This commit is contained in:
1 parent
81e3515f40
commit
c174b368e8
1 file changed
+1
-1
+1
-1
@@ -336,7 +336,7 @@ static inline void snapshot_mrsw_int_clear(snapshot_mrsw_int_t s)
|
|||||||
s->n = 0;
|
s->n = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline unsigned int snapshot_mrsw_int_get_write_idx(const snapshot_mrsw_int_t s)
|
static inline unsigned int snapshot_mrsw_int_get_write_idx(snapshot_mrsw_int_t s)
|
||||||
{
|
{
|
||||||
SNAPSHOTI_SPMC_INT_CONTRACT(s);
|
SNAPSHOTI_SPMC_INT_CONTRACT(s);
|
||||||
return s->currentWrite;
|
return s->currentWrite;
|
||||||
|
|||||||
Reference in new issue
Block a user