summaryrefslogtreecommitdiff
path: root/main/heap.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/heap.c')
-rw-r--r--main/heap.c27
1 files changed, 3 insertions, 24 deletions
diff --git a/main/heap.c b/main/heap.c
index ace5bc832..30fb4e43e 100644
--- a/main/heap.c
+++ b/main/heap.c
@@ -302,38 +302,17 @@ size_t ast_heap_size(struct ast_heap *h)
return h->cur_len;
}
-#ifndef DEBUG_THREADS
-
-int ast_heap_wrlock(struct ast_heap *h)
-{
- return ast_rwlock_wrlock(&h->lock);
-}
-
-int ast_heap_rdlock(struct ast_heap *h)
-{
- return ast_rwlock_rdlock(&h->lock);
-}
-
-int ast_heap_unlock(struct ast_heap *h)
-{
- return ast_rwlock_unlock(&h->lock);
-}
-
-#else /* DEBUG_THREADS */
-
int __ast_heap_wrlock(struct ast_heap *h, const char *file, const char *func, int line)
{
- return _ast_rwlock_wrlock(&h->lock, "&h->lock", file, line, func);
+ return __ast_rwlock_wrlock(&h->lock, "&h->lock", file, line, func);
}
int __ast_heap_rdlock(struct ast_heap *h, const char *file, const char *func, int line)
{
- return _ast_rwlock_rdlock(&h->lock, "&h->lock", file, line, func);
+ return __ast_rwlock_rdlock(&h->lock, "&h->lock", file, line, func);
}
int __ast_heap_unlock(struct ast_heap *h, const char *file, const char *func, int line)
{
- return _ast_rwlock_unlock(&h->lock, "&h->lock", file, line, func);
+ return __ast_rwlock_unlock(&h->lock, "&h->lock", file, line, func);
}
-
-#endif /* DEBUG_THREADS */