Cancellation points: Fix some backward logic in conditional compilation.

This commit is contained in:
Gregory Nutt 2017-02-02 06:42:41 -06:00
parent b77c863d7f
commit 74189d84e2
3 changed files with 3 additions and 3 deletions

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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.
*/