]> granicus.if.org Git - gc/commit
Simplify LOCK/UNLOCK macro definition for static code analysis tools
authorIvan Maidanski <ivmai@mail.ru>
Thu, 8 Nov 2012 17:19:02 +0000 (21:19 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 8 Nov 2012 17:20:53 +0000 (21:20 +0400)
commit3ae3bfe965926c3fd940bcef4bfe8dcdf1613ddc
tree4c63400bd24b6976096d9cfa60d148387f6b1f45
parent9a2053581358e80ef11fb7b6df605eea46aa069d
Simplify LOCK/UNLOCK macro definition for static code analysis tools

* include/private/gc_locks.h (USE_PTHREAD_LOCKS): Explicitly define
if LINT2 and GC_PTHREADS.
* include/private/gc_locks.h (LOCK, UNLOCK): Redirect to
UNCOND_[UN]LOCK (omitting GC_need_to_lock check) if LINT2.
include/private/gc_locks.h