sched/: Cosmetic reordering of conditional compilation. Style is that comments related to the conditionally compiled logic are included within the conditional compipilation so that its scope and belongingness is clear.
This commit is contained in:
parent
bb92b98dc0
commit
94910d2925
@ -154,31 +154,31 @@ volatile dq_queue_t g_pendingtasks;
|
||||
|
||||
volatile dq_queue_t g_waitingforsemaphore;
|
||||
|
||||
#ifndef CONFIG_DISABLE_SIGNALS
|
||||
/* This is the list of all tasks that are blocked waiting for a signal */
|
||||
|
||||
#ifndef CONFIG_DISABLE_SIGNALS
|
||||
volatile dq_queue_t g_waitingforsignal;
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_DISABLE_MQUEUE
|
||||
/* This is the list of all tasks that are blocked waiting for a message
|
||||
* queue to become non-empty.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DISABLE_MQUEUE
|
||||
volatile dq_queue_t g_waitingformqnotempty;
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_DISABLE_MQUEUE
|
||||
/* This is the list of all tasks that are blocked waiting for a message
|
||||
* queue to become non-full.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DISABLE_MQUEUE
|
||||
volatile dq_queue_t g_waitingformqnotfull;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
/* This is the list of all tasks that are blocking waiting for a page fill */
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
volatile dq_queue_t g_waitingforfill;
|
||||
#endif
|
||||
|
||||
@ -188,14 +188,14 @@ volatile dq_queue_t g_waitingforfill;
|
||||
|
||||
volatile dq_queue_t g_inactivetasks;
|
||||
|
||||
#if (defined(CONFIG_BUILD_PROTECTED) || defined(CONFIG_BUILD_KERNEL)) && \
|
||||
defined(CONFIG_MM_KERNEL_HEAP)
|
||||
/* These are lists of delayed memory deallocations that need to be handled
|
||||
* within the IDLE loop or worker thread. These deallocations get queued
|
||||
* by sched_kufree and sched_kfree() if the OS needs to deallocate memory
|
||||
* while it is within an interrupt handler.
|
||||
*/
|
||||
|
||||
#if (defined(CONFIG_BUILD_PROTECTED) || defined(CONFIG_BUILD_KERNEL)) && \
|
||||
defined(CONFIG_MM_KERNEL_HEAP)
|
||||
volatile sq_queue_t g_delayed_kfree;
|
||||
#endif
|
||||
|
||||
|
@ -391,11 +391,11 @@ int nxsig_tcbdispatch(FAR struct tcb_s *stcb, siginfo_t *info)
|
||||
nxsem_wait_irq(stcb, EINTR);
|
||||
}
|
||||
|
||||
#ifndef CONFIG_DISABLE_MQUEUE
|
||||
/* If the task is blocked waiting on a message queue, then that task
|
||||
* must be unblocked when a signal is received.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DISABLE_MQUEUE
|
||||
if (stcb->task_state == TSTATE_WAIT_MQNOTEMPTY ||
|
||||
stcb->task_state == TSTATE_WAIT_MQNOTFULL)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user