]> granicus.if.org Git - gc/commit
Avoid LOCK/UNLOCK hard-coding in gc_locks.h for PS3 target
authorIvan Maidanski <ivmai@mail.ru>
Thu, 8 Nov 2012 16:48:17 +0000 (20:48 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 8 Nov 2012 16:48:17 +0000 (20:48 +0400)
commit9a2053581358e80ef11fb7b6df605eea46aa069d
treed404b50d937c546c49b9476e0bb6c0566b450388
parent4e533165f59772b6d6afd58216650e003b53d6d1
Avoid LOCK/UNLOCK hard-coding in gc_locks.h for PS3 target

* include/private/gc_locks.h (USE_PTHREAD_LOCKS): Define for
SN_TARGET_PS3 target.
* include/private/gcconfig.h (NO_PTHREAD_TRYLOCK): Likewise.
* include/private/gc_locks.h (GC_allocate_ml, LOCK, UNLOCK): Remove
explicit definition for SN_TARGET_PS3.
* include/private/gc_locks.h (UNCOND_LOCK): Define as
pthread_mutex_lock(...) instead of GC_lock() (which calls
pthread_mutex_lock) if USE_PTHREAD_LOCKS but not GC_ASSERTIONS and
not USE_SPIN_LOCK.
include/private/gc_locks.h
include/private/gcconfig.h