Skip to content

Commit 9321e58

Browse files
author
camilo
committed
more minor changes
1 parent 900550a commit 9321e58

File tree

4 files changed

+5
-14
lines changed

4 files changed

+5
-14
lines changed

src/include/kernel.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ namespace qOS {
9393
list coreLists[ Q_PRIORITY_LEVELS + 2 ]; // skipcq: CXX-W2066
9494
list& waitingList; // skipcq: CXX-W2012, CXX-W2010
9595
list& suspendedList; // skipcq: CXX-W2012, CXX-W2010
96-
//list inputWatchers;
9796
void(*cpuIdle)(void){ nullptr };
9897
static const priority_t MAX_PRIORITY_VALUE;
9998
static const uint32_t BIT_INIT;

src/kernel.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,6 @@ void core::dispatchTaskFillEventInfo( task *Task ) noexcept
350350
taskEvent::FirstCall = !Task->getFlag( task::BIT_INIT );
351351
taskEvent::TaskData = Task->taskData;
352352
taskEvent::currentTask = Task;
353-
//currentTask = Task;
354353
}
355354
/*============================================================================*/
356355
void core::dispatch( list * const xList ) noexcept

src/logger.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ namespace qOS {
6464
_logger_out.toLog( loc.line() );
6565
_logger_out.toLog( "): " );
6666
}
67-
//return _logger_out;
6867
return ChainLoggerProxy(_logger_out);
6968
}
7069
/*cstat +MISRAC++2008-0-1-7*/

src/task.cpp

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -201,18 +201,12 @@ trigger task::queueCheckEvents( void ) noexcept
201201
trigger retValue = trigger::None;
202202

203203
if ( nullptr != aQueue ) {
204-
bool fullFlag;
205-
bool countFlag;
206-
bool receiverFlag;
207-
bool emptyFlag;
208-
size_t qCount; /*current queue count*/
204+
const bool fullFlag = getFlag( BIT_QUEUE_FULL );
205+
const bool countFlag = getFlag( BIT_QUEUE_COUNT );
206+
const bool receiverFlag = getFlag( BIT_QUEUE_RECEIVER );
207+
const bool emptyFlag = getFlag( BIT_QUEUE_EMPTY );
208+
const size_t qCount = aQueue->count(); /*current queue count*/
209209

210-
fullFlag = getFlag( BIT_QUEUE_FULL );
211-
countFlag = getFlag( BIT_QUEUE_COUNT );
212-
receiverFlag = getFlag( BIT_QUEUE_RECEIVER );
213-
emptyFlag = getFlag( BIT_QUEUE_EMPTY );
214-
215-
qCount = aQueue->count(); /*to avoid side effects*/
216210
/*check the queue events in the corresponding precedence order*/
217211
/*cstat -MISRAC++2008-5-14-1*/
218212
if ( fullFlag && aQueue->isFull() ) { /*isFull() is known to not have side effects*/

0 commit comments

Comments
 (0)