diff options
author | 2016-10-02 21:21:22 -0700 | |
---|---|---|
committer | 2016-10-02 21:24:43 -0700 | |
commit | ba12a8f7e315950e840e942de8c2d36dc78dddf7 (patch) | |
tree | 384b817cf2d9efd156d491288b9630d1770404a3 /lib/fuse.c | |
parent | d968b4ddaeead5296b31f5c02f4f0e966372390a (diff) |
Merged fuse_mt.c into fuse.c
There is no point in having a separate file for a 10 line function.
Diffstat (limited to 'lib/fuse.c')
-rw-r--r-- | lib/fuse.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -4379,6 +4379,20 @@ int fuse_loop(struct fuse *f) 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); |