# Race condition behaviors

**URL:** <https://forums.swift.org/t/race-condition-behaviors/54322>\
**Category:** Using Swift\
**Tags:** concurrency\
**Created:** [December 28, 2021, 7:28am UTC](https://forums.swift.org/t/race-condition-behaviors/54322 "2021-12-28T07:28:23Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![Lantua](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/lantua/32/8868_2.png) [@Lantua](https://forums.swift.org/u/Lantua)\
**Post date:** [January 4, 2022, 1:29am UTC](https://forums.swift.org/t/race-condition-behaviors/54322/17 "2022-01-04T01:29:31Z")

</div>

> [@tera](#):
>
> return the same byte offset

No, that cannot work. You'd at least know the offset (in bits) for it to be any useful, which is not something `offset(of:)` can provide.

It seems to be mentioned in a separate thread that they indeed are not addressable.

> [@SE-0334: Pointer Usability Improvements](https://forums.swift.org/t/se-0334-pointer-usability-improvements/53800/16):
>
> If you have a struct with two `Bool` fields in it, those might not be addressable as they could be packed into separate bits of the same byte. If you want an address, Swift has to materialize the address for you and perform a write-back when you're done. Improving how that is done is(/was) the role of accessors and safety is helped by exclusivity.

---

_[View the full topic](https://forums.swift.org/t/race-condition-behaviors/54322)._
