Cancellation points: Fix some backward logic in conditional compilation.
This commit is contained in:
parent
b77c863d7f
commit
74189d84e2
|
@ -148,7 +148,7 @@ FAR struct mqueue_msg_s *mq_waitreceive(mqd_t mqdes)
|
|||
|
||||
if (enter_cancellation_point())
|
||||
{
|
||||
#ifndef CONFIG_CANCELLATION_POINTS /* Not reachable in this case */
|
||||
#ifdef CONFIG_CANCELLATION_POINTS
|
||||
/* If there is a pending cancellation, then do not perform
|
||||
* the wait. Exit now with ECANCELED.
|
||||
*/
|
||||
|
|
|
@ -239,7 +239,7 @@ int mq_waitsend(mqd_t mqdes)
|
|||
|
||||
if (enter_cancellation_point())
|
||||
{
|
||||
#ifndef CONFIG_CANCELLATION_POINTS /* Not reachable in this case */
|
||||
#ifdef CONFIG_CANCELLATION_POINTS
|
||||
/* If there is a pending cancellation, then do not perform
|
||||
* the wait. Exit now with ECANCELED.
|
||||
*/
|
||||
|
|
|
@ -98,7 +98,7 @@ int sem_wait(FAR sem_t *sem)
|
|||
|
||||
if (enter_cancellation_point())
|
||||
{
|
||||
#ifndef CONFIG_CANCELLATION_POINTS /* Not reachable in this case */
|
||||
#ifdef CONFIG_CANCELLATION_POINTS
|
||||
/* If there is a pending cancellation, then do not perform
|
||||
* the wait. Exit now with ECANCELED.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue