]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Changed function not_a_mutex() from static to extern.
authorBart Van Assche <bvanassche@acm.org>
Sat, 28 Jun 2008 16:22:24 +0000 (16:22 +0000)
committerBart Van Assche <bvanassche@acm.org>
Sat, 28 Jun 2008 16:22:24 +0000 (16:22 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8300

exp-drd/drd_mutex.c
exp-drd/drd_mutex.h

index 823da1cd5bd3355fac3427922a02afbe001142e8..2176ba1ab37297a8c1e62332d429c3cd16b86d6b 100644 (file)
@@ -111,7 +111,7 @@ static void mutex_cleanup(struct mutex_info* p)
 }
 
 /** Let Valgrind report that there is no mutex object at address 'mutex'. */
-static void not_a_mutex(const Addr mutex)
+void not_a_mutex(const Addr mutex)
 {
   MutexErrInfo MEI = { mutex, -1, DRD_INVALID_THREADID };
   VG_(maybe_record_error)(VG_(get_running_tid)(),
index e241f673fccbdf2884b19619702caee801d67c80..956bb44852f6b7bde45bbdcd6132a5f6ba1e3cb4 100644 (file)
@@ -41,6 +41,7 @@ void mutex_set_lock_threshold(const UInt lock_threshold_ms);
 struct mutex_info* mutex_init(const Addr mutex,
                               const MutexT mutex_type);
 void mutex_post_destroy(const Addr mutex);
+void not_a_mutex(const Addr mutex);
 struct mutex_info* mutex_get(const Addr mutex);
 void mutex_pre_lock(const Addr mutex, const MutexT mutex_type,
                     const Bool trylock);