diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-01-21 02:59:12 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-01-21 02:59:12 +0100 |
commit | e094e853a047e10f0d2989eed76b6aa430e3ea1a (patch) | |
tree | 29acb378f3f659399c474ba516ca02ae6051a59d /job.c | |
parent | 1ffba6fe82d65f2a87b53a21c7927bca8176038c (diff) |
make sure impact of transactions is minimized
Diffstat (limited to 'job.c')
-rw-r--r-- | job.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -264,3 +264,12 @@ bool job_type_is_superset(JobType a, JobType b) { } } + +bool job_type_is_conflicting(JobType a, JobType b) { + + /* Checks whether two types are "conflicting" */ + + return + (a == JOB_STOP && b != JOB_STOP) || + (b == JOB_STOP && a != JOB_STOP); +} |