There is no point in having a separate file for a 10 line function.
fuse_loop_mt.c \
fuse_lowlevel.c \
fuse_misc.h \
- fuse_mt.c \
fuse_opt.c \
fuse_session.c \
fuse_signals.c \
return fuse_session_loop(f->se);
}
+int fuse_loop_mt(struct fuse *f)
+{
+ if (f == NULL)
+ return -1;
+
+ int res = fuse_start_cleanup_thread(f);
+ if (res)
+ return -1;
+
+ res = fuse_session_loop_mt(fuse_get_session(f));
+ fuse_stop_cleanup_thread(f);
+ return res;
+}
+
void fuse_exit(struct fuse *f)
{
fuse_session_exit(f->se);
+++ /dev/null
-/*
- FUSE: Filesystem in Userspace
- Copyright (C) 2001-2007 Miklos Szeredi <miklos@szeredi.hu>
-
- This program can be distributed under the terms of the GNU LGPLv2.
- See the file COPYING.LIB.
-*/
-
-#include "config.h"
-#include "fuse.h"
-#include "fuse_lowlevel.h"
-
-int fuse_loop_mt(struct fuse *f)
-{
- if (f == NULL)
- return -1;
-
- int res = fuse_start_cleanup_thread(f);
- if (res)
- return -1;
-
- res = fuse_session_loop_mt(fuse_get_session(f));
- fuse_stop_cleanup_thread(f);
- return res;
-}