diff options
author | Rosen Penev <rosenp@gmail.com> | 2020-10-28 19:25:38 -0700 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2020-10-29 10:59:23 +0000 |
commit | e032ca7a88afe1a7cd028ca63e2993af9c0b91af (patch) | |
tree | 0875b3c22c1147aa8e6c1e2e69fc497aecb9b453 /lib/fuse_loop_mt.c | |
parent | 4ebb018e78b53a8afe0368e7cd7a17a67c52e3df (diff) | |
download | libfuse-e032ca7a88afe1a7cd028ca63e2993af9c0b91af.tar.gz |
remove fuse_mutex_init
This seems to have been added before 2006 to fix a uclibc bug. It
doesn't seem to be the case anymore so just get rid of it.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'lib/fuse_loop_mt.c')
-rw-r--r-- | lib/fuse_loop_mt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fuse_loop_mt.c b/lib/fuse_loop_mt.c index 0c6a5b7..71be15d 100644 --- a/lib/fuse_loop_mt.c +++ b/lib/fuse_loop_mt.c @@ -65,7 +65,7 @@ static struct fuse_chan *fuse_chan_new(int fd) memset(ch, 0, sizeof(*ch)); ch->fd = fd; ch->ctr = 1; - fuse_mutex_init(&ch->lock); + pthread_mutex_init(&ch->lock, NULL); return ch; } @@ -321,7 +321,7 @@ int fuse_session_loop_mt_32(struct fuse_session *se, struct fuse_loop_config *co mt.main.thread_id = pthread_self(); mt.main.prev = mt.main.next = &mt.main; sem_init(&mt.finish, 0, 0); - fuse_mutex_init(&mt.lock); + pthread_mutex_init(&mt.lock, NULL); pthread_mutex_lock(&mt.lock); err = fuse_loop_start_thread(&mt); |