dh->len = 0;
dh->filled = 0;
dh->nodeid = ino;
- fuse_mutex_init(&dh->lock);
+ pthread_mutex_init(&dh->lock, NULL);
llfi->fh = (uintptr_t) dh;
if (node_table_init(&f->id_table) == -1)
goto out_free_name_table;
- fuse_mutex_init(&f->lock);
+ pthread_mutex_init(&f->lock, NULL);
root = alloc_node(f);
if (root == NULL) {
memset(ch, 0, sizeof(*ch));
ch->fd = fd;
ch->ctr = 1;
- fuse_mutex_init(&ch->lock);
+ pthread_mutex_init(&ch->lock, NULL);
return ch;
}
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);
req->se = se;
req->ctr = 1;
list_init_req(req);
- fuse_mutex_init(&req->lock);
+ pthread_mutex_init(&req->lock, NULL);
}
return req;
list_init_req(&se->interrupts);
list_init_nreq(&se->notify_list);
se->notify_ctr = 1;
- fuse_mutex_init(&se->lock);
+ pthread_mutex_init(&se->lock, NULL);
err = pthread_key_create(&se->pipe_key, fuse_ll_pipe_destructor);
if (err) {
#define FUSE_SYMVER(sym1, sym2)
#endif
-#ifndef USE_UCLIBC
-#define fuse_mutex_init(mut) pthread_mutex_init(mut, NULL)
-#else
-/* Is this hack still needed? */
-static inline void fuse_mutex_init(pthread_mutex_t *mut)
-{
- pthread_mutexattr_t attr;
- pthread_mutexattr_init(&attr);
- pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ADAPTIVE_NP);
- pthread_mutex_init(mut, &attr);
- pthread_mutexattr_destroy(&attr);
-}
-#endif
-
#ifdef HAVE_STRUCT_STAT_ST_ATIM
/* Linux */
#define ST_ATIM_NSEC(stbuf) ((stbuf)->st_atim.tv_nsec)