Implementation of the java.concurrent.util.AtomicBoolean type. Uses Interlocked.MemoryBarrier internally to enforce ordering of writes without any explicit locking. .NET's strong memory on write guarantees might already enforce this ordering, but the addition of the MemoryBarrier guarantees it.