Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: JobSchedulerDemo Borsch
Diff: jobService.cpp
- Revision:
- 10:8cff30b5b90d
- Parent:
- 9:ee21cd055a97
- Child:
- 11:df18df016d7e
--- a/jobService.cpp Thu Jul 13 20:01:07 2017 +0000 +++ b/jobService.cpp Thu Jul 13 23:07:09 2017 +0000 @@ -1,14 +1,18 @@ #include "jobService.h" +#include "mbed-trace/mbed_trace.h" +#define TRACE_GROUP "scjs" + namespace JobScheduler { bool JobType::AscendingExcl(JobType *j2) { - return this->_jobTypeID < j2->_jobTypeID; + return this->_jobTypeID > j2->_jobTypeID; } bool JobType::IsEqual(JobType *j2) { + tr_debug("IsEqual %d %d", this->_jobTypeID, j2->_jobTypeID); return this->_jobTypeID == j2->_jobTypeID; } @@ -27,7 +31,7 @@ JobType *jt = new JobType(jobTypeID, job, context); node<JobType> *tmp = _jobs.insertOrdered(jt, jtAscending); if (NULL == tmp) { - error("[JobService::Register] failed to insertOrdered"); + tr_error("Failed to register job type id %d", jobTypeID); return Error(1); } return NoError;