- Still a bit of portability-related changes. Now it is almost totally portable to Windows (only path of config file should remain...)

git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1175 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
elvez 2006-09-15 16:41:24 +00:00
parent 057d3609f1
commit bd1b8f879b
4 changed files with 13 additions and 12 deletions

View file

@ -22,8 +22,9 @@
#include "python_cpu_policy.hh"
#include <glibmm/timer.h>
#include <limits>
#include <unistd.h>
#include <iostream>
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);