- Finish implementing async setup for Python policies' access
- Correct method names for the Python policy (design problem?) - Compiles, but can't run it on this machine. I'll test it later (and I expect quite a lot of SIGSEGVs). git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@382 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
882a6acf5e
commit
8f655f2f69
8 changed files with 211 additions and 96 deletions
|
@ -32,28 +32,37 @@
|
|||
|
||||
namespace sgpem
|
||||
{
|
||||
class PythonPolicy;
|
||||
class PythonPolicyManager;
|
||||
|
||||
class PythonPolicy;
|
||||
class PythonPolicyManager;
|
||||
class SG_DLLEXPORT PythonPolicy : public Policy
|
||||
{
|
||||
public:
|
||||
//only PythonPolicyManager can create a PythonPolicy object
|
||||
friend class PythonPolicyManager;
|
||||
|
||||
class SG_DLLEXPORT PythonPolicy : public Policy
|
||||
{
|
||||
public:
|
||||
//only PythonPolicyManager can create a PythonPolicy object
|
||||
friend class PythonPolicyManager;
|
||||
|
||||
void configure() {}
|
||||
void sort_queue(sgpem::Scheduler::event) const {}
|
||||
Glib::ustring get_description() const {}
|
||||
bool is_pre_emptive() const {}
|
||||
int get_time_slice() const {}
|
||||
void set_time_slice(const int&) {}
|
||||
|
||||
private:
|
||||
PythonPolicy();
|
||||
PythonPolicy(const PythonPolicy&);
|
||||
PythonPolicy& operator=(const PythonPolicy&);
|
||||
};
|
||||
virtual ~PythonPolicy();
|
||||
|
||||
void configure();
|
||||
void sort_queue(Scheduler::event) const;
|
||||
Glib::ustring get_description() const;
|
||||
bool is_pre_emptive() const;
|
||||
int get_time_slice() const;
|
||||
void set_time_slice(const int&);
|
||||
|
||||
private:
|
||||
PythonPolicy(const char* name);
|
||||
PythonPolicy(const PythonPolicy&);
|
||||
PythonPolicy& operator=(const PythonPolicy&);
|
||||
|
||||
void wait_unlock() const;
|
||||
|
||||
PyObject* _adapter;
|
||||
PyObject* _adapter_dict;
|
||||
PyObject* _lock;
|
||||
|
||||
Glib::ustring _name;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue