appleguy 6799e26b03 [ASTextNode2] Upgrade lock safety by protecting all ivars (including rarely-changed ones). (#918)
* [ASTextNode2] Upgrade lock safety by protecting all ivars (including rarely-changed ones).

Although I don't know of any specific crashes caused by this, I think we should
lock all properties by default. There are also some indications of premature
optimization in keeping lock scope small, where it is actually important to
have transactional integrity, and also where the ASDisplayNode base class is
otherwise going to repeatedly re-lock the object anyway.

I think this will remain pretty efficient, especially with os_unfair_lock enabled.

* Use compare-assign macros
2018-05-19 12:47:06 -07:00
..
2017-04-24 16:59:57 -07:00
2017-04-24 16:59:57 -07:00
2017-04-24 16:59:57 -07:00
2017-04-24 16:59:57 -07:00
2017-04-24 16:59:57 -07:00
2017-04-24 16:59:57 -07:00
2017-04-24 16:59:57 -07:00
2017-02-26 18:14:13 -08:00