diff options
author | bart <bart@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2009-02-15 11:34:57 +0000 |
---|---|---|
committer | bart <bart@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2009-02-15 11:34:57 +0000 |
commit | 195e41fe2b9e02e142a0461113bfa55c89d24c5e (patch) | |
tree | 64aa6a061e816fe6de6694d1efea098ba764fabe /drd/drd_rwlock.c | |
parent | a8cf765964dc9b9436384469a0a30889b24d1997 (diff) | |
download | valgrind-195e41fe2b9e02e142a0461113bfa55c89d24c5e.tar.gz |
Wrapped DRD_() macro around all client object function names.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9166 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'drd/drd_rwlock.c')
-rw-r--r-- | drd/drd_rwlock.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drd/drd_rwlock.c b/drd/drd_rwlock.c index 824e45988..78abbb87a 100644 --- a/drd/drd_rwlock.c +++ b/drd/drd_rwlock.c @@ -227,13 +227,13 @@ rwlock_get_or_allocate(const Addr rwlock) struct rwlock_info* p; tl_assert(offsetof(DrdClientobj, rwlock) == 0); - p = &clientobj_get(rwlock, ClientRwlock)->rwlock; + p = &(DRD_(clientobj_get)(rwlock, ClientRwlock)->rwlock); if (p) { return p; } - if (clientobj_present(rwlock, rwlock + 1)) + if (DRD_(clientobj_present)(rwlock, rwlock + 1)) { GenericErrInfo GEI; VG_(maybe_record_error)(VG_(get_running_tid)(), @@ -244,7 +244,7 @@ rwlock_get_or_allocate(const Addr rwlock) return 0; } - p = &clientobj_add(rwlock, ClientRwlock)->rwlock; + p = &(DRD_(clientobj_add)(rwlock, ClientRwlock)->rwlock); rwlock_initialize(p, rwlock); return p; } @@ -252,7 +252,7 @@ rwlock_get_or_allocate(const Addr rwlock) static struct rwlock_info* rwlock_get(const Addr rwlock) { tl_assert(offsetof(DrdClientobj, rwlock) == 0); - return &clientobj_get(rwlock, ClientRwlock)->rwlock; + return &(DRD_(clientobj_get)(rwlock, ClientRwlock)->rwlock); } /** Called before pthread_rwlock_init(). */ @@ -306,7 +306,7 @@ void rwlock_post_destroy(const Addr rwlock) return; } - clientobj_remove(rwlock, ClientRwlock); + DRD_(clientobj_remove)(rwlock, ClientRwlock); } /** Called before pthread_rwlock_rdlock() is invoked. If a data structure for @@ -562,8 +562,8 @@ void rwlock_thread_delete(const DrdThreadId tid) { struct rwlock_info* p; - clientobj_resetiter(); - for ( ; (p = &clientobj_next(ClientRwlock)->rwlock) != 0; ) + DRD_(clientobj_resetiter)(); + for ( ; (p = &(DRD_(clientobj_next)(ClientRwlock)->rwlock)) != 0; ) { struct rwlock_thread_info* q; if (rwlock_is_locked_by(p, tid)) |