diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-07-08 11:12:30 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-07-08 11:12:30 +0200 |
commit | 7a05d6fac03cd1d96ef219ad64cb2a61c8300c47 (patch) | |
tree | ed8a36e984ffb3683a2428e345c774481dd34ba8 /tarlist.c | |
parent | e559567111b9b5dd46cf5e3278e71cc0b2423cfa (diff) | |
parent | 09a547f9155e54fd34c4fab20ff98d906cedb2c2 (diff) |
Merge remote-tracking branch 'origin/tarfs/master' into tarfs
Diffstat (limited to 'tarlist.c')
-rw-r--r-- | tarlist.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -36,7 +36,7 @@ void tar_list_init (struct tar_list *list) { list->head = NULL; - mutex_init (&list->lock); + pthread_mutex_init (&list->lock, NULL); } /* Make a tar item containing the given information. NEW points to the @@ -71,7 +71,7 @@ tar_insert_item (struct tar_list *list, assert (prev != new); - mutex_lock (&list->lock); + pthread_mutex_lock (&list->lock); head = &list->head; if (! prev) @@ -97,7 +97,7 @@ tar_insert_item (struct tar_list *list, if (next) next->prev = new; - mutex_unlock (&list->lock); + pthread_mutex_unlock (&list->lock); return 0; } @@ -136,9 +136,9 @@ tar_unlink_item_safe (struct tar_list *list, struct tar_item *item) void tar_unlink_item (struct tar_list *list, struct tar_item *tar) { - mutex_lock (&list->lock); + pthread_mutex_lock (&list->lock); tar_unlink_item_safe (list, tar); - mutex_unlock (&list->lock); + pthread_mutex_unlock (&list->lock); } |