summaryrefslogtreecommitdiff
path: root/include/private/gc_locks.h
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2011-07-26 20:18:03 +0400
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 20:18:03 +0400
commit64040040407b11d8740516fad2438109e7f22c02 (patch)
tree6d18a075ceb6f63855730afe630e50b0afa7ed32 /include/private/gc_locks.h
parente35a4171fe47dfbf847e08988ea6cec4dfc8d124 (diff)
downloadbdwgc-64040040407b11d8740516fad2438109e7f22c02.tar.gz
gc7.0alpha2 tarball importgc7_0alpha2
Diffstat (limited to 'include/private/gc_locks.h')
-rw-r--r--include/private/gc_locks.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/private/gc_locks.h b/include/private/gc_locks.h
index b69d2b87..9184e3a6 100644
--- a/include/private/gc_locks.h
+++ b/include/private/gc_locks.h
@@ -72,11 +72,6 @@
# define FASTUNLOCK() {\
if( FASTLOCK_SUCCEEDED() ) PCR_Th_ML_Release(&GC_allocate_ml); }
# endif
-# ifdef SRC_M3
- extern GC_word RT0u__inCritical;
-# define LOCK() RT0u__inCritical++
-# define UNLOCK() RT0u__inCritical--
-# endif
# if !defined(AO_have_test_and_set_acquire)
# define USE_PTHREAD_LOCKS
@@ -205,7 +200,7 @@
# endif /* !THREADS */
#if defined(UNCOND_LOCK) && !defined(LOCK)
- extern GC_bool GC_need_to_lock;
+ GC_API GC_bool GC_need_to_lock;
/* At least two thread running; need to lock. */
# define LOCK() if (GC_need_to_lock) { UNCOND_LOCK(); }
# define UNLOCK() if (GC_need_to_lock) { UNCOND_UNLOCK(); }