mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
07e0609e42
commit
af09204ffb
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue