diff --git a/plugins/pyloader/src/python_cpu_policy.cc b/plugins/pyloader/src/python_cpu_policy.cc index 57b612d..5ee728c 100644 --- a/plugins/pyloader/src/python_cpu_policy.cc +++ b/plugins/pyloader/src/python_cpu_policy.cc @@ -22,8 +22,9 @@ #include "python_cpu_policy.hh" +#include + #include -#include #include using namespace sgpem; @@ -235,7 +236,7 @@ PythonCPUPolicy::wait_unlock() const throw(UserInterruptException, MalformedPoli do { Py_UNBLOCK_THREADS; - usleep(wait_for); // hack'a'ton! magggggiccc nummmbeeerrrrrs!! + Glib::usleep(wait_for); // hack'a'ton! magggggiccc nummmbeeerrrrrs!! Py_BLOCK_THREADS; PyObject* retval = PyObject_CallMethod(_adapter, "mutex_test_lock", NULL); diff --git a/plugins/pyloader/src/python_cpu_policy.hh b/plugins/pyloader/src/python_cpu_policy.hh index 8481a7a..8d28ca4 100644 --- a/plugins/pyloader/src/python_cpu_policy.hh +++ b/plugins/pyloader/src/python_cpu_policy.hh @@ -23,16 +23,17 @@ #include "config.h" +#include +#include +#include + #include + #include #include #include -#include -#include -#include - namespace sgpem { class PythonCPUPolicy; diff --git a/plugins/pyloader/src/python_cpu_policy_manager.cc b/plugins/pyloader/src/python_cpu_policy_manager.cc index 752436b..af2e29c 100644 --- a/plugins/pyloader/src/python_cpu_policy_manager.cc +++ b/plugins/pyloader/src/python_cpu_policy_manager.cc @@ -24,7 +24,6 @@ #include -#include #include #include #include @@ -36,7 +35,6 @@ #include #include #include -#include using namespace sgpem; using std::vector; @@ -108,8 +106,8 @@ PythonCPUPolicyManager::collect_policies() for (; dir_it != dir_end; ++dir_it) { - Glib::Dir dir(dir_it->c_str()); - + Glib::Dir dir(*dir_it); + #ifndef NDEBUG std::clog << "Opening directory " << *dir_it << " looking for python policies..." << endl; #endif diff --git a/plugins/pyloader/src/python_cpu_policy_manager.hh b/plugins/pyloader/src/python_cpu_policy_manager.hh index ba8480b..7a0a7f9 100644 --- a/plugins/pyloader/src/python_cpu_policy_manager.hh +++ b/plugins/pyloader/src/python_cpu_policy_manager.hh @@ -23,10 +23,11 @@ #include "config.h" -#include +#include "python_cpu_policy.hh" #include -#include "python_cpu_policy.hh" + +#include namespace sgpem {