summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 3c1038e..5fb5a05 100644
--- a/src/main.c
+++ b/src/main.c
@@ -507,9 +507,9 @@ void *mscp_copy_thread(void *arg)
pthread_cleanup_push(mscp_copy_thread_cleanup, t);
while (1) {
- lock_acquire(&m.chunk_lock);
+ LOCK_ACQUIRE_THREAD(&m.chunk_lock);
c = chunk_acquire(&m.chunk_list);
- lock_release(&m.chunk_lock);
+ LOCK_RELEASE_THREAD();
if (!c)
break; /* no more chunks */