Robbepop / modular-bitfield

Macro to generate bitfields for structs that allow for modular use of enums.
Apache License 2.0
155 stars 40 forks source link

Atomics support #72

Open playXE opened 2 years ago

playXE commented 2 years ago

It would be cool if bitfield loads and stores could also be atomic. For example, it is very usable in GC systems where object color might be encoded in 2 or 3 bits, and during parallel/concurrent collection these bits should be updated atomically.