From f830a7f84dda931307785dd9653c3627c9cc6386 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Fri, 16 Nov 2001 17:46:45 +0000 Subject: multithreading works in Python --- python/fuse.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'python/fuse.py') diff --git a/python/fuse.py b/python/fuse.py index ec40262..dff6f47 100644 --- a/python/fuse.py +++ b/python/fuse.py @@ -1,4 +1,10 @@ #!/usr/bin/env python +# +# Copyright (C) 2001 Jeff Epler +# +# This program can be distributed under the terms of the GNU GPL. +# See the file COPYING. +# from _fuse import main, DEBUG import os @@ -23,8 +29,10 @@ class Fuse: 'chown', 'truncate', 'utime', 'open', 'read', 'write'] flags = 0 + multithreaded = 0 def main(self): d = {'flags': self.flags} + d['multithreaded'] = self.multithreaded for a in self._attrs: if hasattr(self,a): d[a] = ErrnoWrapper(getattr(self, a)) @@ -98,4 +106,5 @@ class Xmp(Fuse): if __name__ == '__main__': server = Xmp() server.flags = DEBUG + server.multithreaded = 1; server.main() -- cgit v1.2.3