forked from lei.chen/myxce
working of scheduler to handle configuration
This commit is contained in:
parent
a46ea822c1
commit
ae658c4a23
11 changed files with 99 additions and 45 deletions
|
|
@ -358,10 +358,11 @@ typedef struct {
|
|||
0x20 /**< Fairshare queue with null user share defined*/
|
||||
|
||||
/* FIXME: improve following later */
|
||||
#define JOB_IS_PEND(j) ((j->state & JOB_STAT_PEND) != 0)
|
||||
#define JOB_IS_RUN(j) ((j->state & JOB_STAT_RUN) != 0)
|
||||
#define JOB_IS_EXIT(j) ((j->state & JOB_STAT_EXIT) != 0)
|
||||
#define JOB_IS_DONE(j) ((j->state & JOB_STAT_DONE) != 0)
|
||||
#define JOB_IS_PEND(state) (((state) & JOB_STAT_PEND) != 0)
|
||||
#define JOB_IS_RUN(state) (((state) & JOB_STAT_RUN) != 0)
|
||||
#define JOB_IS_EXIT(state) (((state) & JOB_STAT_EXIT) != 0)
|
||||
#define JOB_IS_DONE(state) (((state) & JOB_STAT_DONE) != 0)
|
||||
#define JOB_IS_FINISH(state) (JOB_IS_EXIT(state) || JOB_IS_DONE(state))
|
||||
|
||||
typedef enum {
|
||||
NORMAL = 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue