mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 04:52:02 +08:00
Cancellation points: Fix some backward logic in conditional compilation.
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user