1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2025-02-17 02:31:41 +01:00

Remove duplicate calls to mark_as_used

This commit is contained in:
Arun Sharma 2009-10-17 22:45:30 -07:00
parent 4ab26bcdaa
commit 3067acf172

View file

@ -196,13 +196,11 @@ static inline void mark_as_used(void *v) {
#define lock_acquire(l,m) \ #define lock_acquire(l,m) \
do { \ do { \
SIGPROCMASK (SIG_SETMASK, &unwi_full_mask, &(m)); \ SIGPROCMASK (SIG_SETMASK, &unwi_full_mask, &(m)); \
mark_as_used(&(m)); \
mutex_lock (l); \ mutex_lock (l); \
} while (0) } while (0)
#define lock_release(l,m) \ #define lock_release(l,m) \
do { \ do { \
mutex_unlock (l); \ mutex_unlock (l); \
mark_as_used(&(m)); \
SIGPROCMASK (SIG_SETMASK, &(m), NULL); \ SIGPROCMASK (SIG_SETMASK, &(m), NULL); \
} while (0) } while (0)