comparison PyPlugScanner.h @ 3:134313c59d82

* Add global mutex to PyPlugin -- all plugin method calls are strictly serialised in order to avoid problems with Python interpreter's lack of thread safety.
author cannam
date Fri, 14 Mar 2008 12:02:15 +0000
parents e20e214bdfb5
children 7d28bed0864e
comparison
equal deleted inserted replaced
2:211ebe55d521 3:134313c59d82
39 */ 39 */
40 40
41 #ifndef _VAMP_PYPLUG_SCANNER_H_ 41 #ifndef _VAMP_PYPLUG_SCANNER_H_
42 #define _VAMP_PYPLUG_SCANNER_H_ 42 #define _VAMP_PYPLUG_SCANNER_H_
43 43
44 #include "/usr/include/python/Python.h" 44 #include <Python.h>
45 #include <iostream> 45 #include <iostream>
46 #include <vector> 46 #include <vector>
47 #include <string> 47 #include <string>
48 #include <map> 48 #include <map>
49 //#include <fstream> 49 //#include <fstream>
68 std::vector<std::string> m_path; 68 std::vector<std::string> m_path;
69 std::vector<PyObject*> m_pyInstances; 69 std::vector<PyObject*> m_pyInstances;
70 }; 70 };
71 71
72 #endif 72 #endif
73 73