typdef for refcount when no atimics available

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40225 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2016-11-18 06:49:16 +00:00
parent 07e0609e42
commit af09204ffb

View file

@ -372,6 +372,8 @@ GSAtomicDecrement(gsatomic_t X)
#if !defined(GSATOMICREAD)
typedef int gsrefcount_t; // No atomics, use a simple integer
/* Having just one allocationLock for all leads to lock contention
* if there are lots of threads doing lots of retain/release calls.
* To alleviate this, instead of a single