Line data Source code
1 : /////////////////////////////////////////////////////////////////////////// 2 : // Spetabaru - Berenger Bramas MPCDF - 2017 3 : // Under LGPL Licence, please you must read the LICENCE file. 4 : /////////////////////////////////////////////////////////////////////////// 5 : #ifndef SPPRIORITY_HPP 6 : #define SPPRIORITY_HPP 7 : 8 : /** 9 : * This class contains the priority of a task. 10 : * It should be used at task creation to inform the runtime 11 : * about the desired priority. 12 : */ 13 : class SpPriority{ 14 : int priority; 15 : public: 16 535 : explicit SpPriority(const int inPriority) 17 535 : : priority(inPriority){ 18 535 : } 19 : 20 2254 : int getPriority() const{ 21 2254 : return priority; 22 : } 23 : }; 24 : 25 : #endif 26 :