From 34825da69b67fa9e3b3607004e449a2be1f669ae Mon Sep 17 00:00:00 2001 From: tchernobog Date: Fri, 8 Sep 2006 20:34:05 +0000 Subject: [PATCH] - Expose the Schedulable::set_priority_push() method to python and outside the backend in general (else, having a get_current_priority() method was quite pointless) git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1070 3ecf2c5c-341e-0410-92b4-d18e462d057c --- plugins/pyloader/src/sgpem.i | 1 + src/backend/sgpemv2/schedulable.hh | 2 ++ 2 files changed, 3 insertions(+) diff --git a/plugins/pyloader/src/sgpem.i b/plugins/pyloader/src/sgpem.i index 1ab25a4..a78f7fd 100644 --- a/plugins/pyloader/src/sgpem.i +++ b/plugins/pyloader/src/sgpem.i @@ -157,6 +157,7 @@ namespace sgpem { virtual int get_last_release() const = 0; virtual int get_base_priority() const = 0; virtual int get_current_priority() const = 0; + virtual int set_priority_push(int new_value = 0) = 0; virtual unsigned int get_total_cpu_time() const = 0; %ignore Schedulable::get_state() const; diff --git a/src/backend/sgpemv2/schedulable.hh b/src/backend/sgpemv2/schedulable.hh index 1dd979d..5ac03de 100644 --- a/src/backend/sgpemv2/schedulable.hh +++ b/src/backend/sgpemv2/schedulable.hh @@ -69,6 +69,8 @@ namespace sgpem virtual int get_current_priority() const = 0; + virtual int set_priority_push(int new_value = 0) = 0; + virtual state get_state() const = 0; virtual void serialize(SerializeVisitor& translator) const = 0;