You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "xiaoxiang781216 (via GitHub)" <gi...@apache.org> on 2026/02/02 05:57:16 UTC
Re: [PR] Replace nxsem_get_value with NXSEM_COUNT. [nuttx]
xiaoxiang781216 commented on code in PR #18254:
URL: https://github.com/apache/nuttx/pull/18254#discussion_r2752681373
##########
wireless/ieee802154/mac802154.c:
##########
@@ -2050,9 +2050,8 @@ static void mac802154_rxbeaconframe(FAR struct ieee802154_privmac_s *priv,
}
else if (priv->curr_op == MAC802154_OP_NONE)
{
- int sval;
- DEBUGASSERT(nxsem_get_value(&priv->opsem, &sval) == 0
- && sval == 1);
+ DEBUGASSERT(atomic_read(NXSEM_COUNT(&priv->opsem))
Review Comment:
why change to atomic_read
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org