You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "tmedicci (via GitHub)" <gi...@apache.org> on 2024/03/26 12:37:09 UTC
[PR] esp32[|s2|s3]: Update libc stubs to properly acquire/release locks [nuttx]
tmedicci opened a new pull request, #12003:
URL: https://github.com/apache/nuttx/pull/12003
## Summary
* esp32[|s2|s3]: Update libc stubs to properly acquire/release locks.
Avoid using global mutexes and recursive mutexes as the locking mechanism to be acquired/released. Instead, create a specific lock for each call if it does not exist.
## Impact
Functions like `_lock_init` set only a global lock in NuttX (`g_nxlock_common`), which may result in erroneous behavior if another lock is intended to be used (from another function that calls it, for instance). A unique lock must be used instead.
## Testing
Internal CI testing + ESP32-DevKitC V4 +ESP32-Saola-1 v1.2 + ESP32-S3-DevKitC-1 v1.0
--
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
Re: [PR] esp32[|s2|s3]: Update libc stubs to properly acquire/release locks [nuttx]
Posted by "acassis (via GitHub)" <gi...@apache.org>.
acassis merged PR #12003:
URL: https://github.com/apache/nuttx/pull/12003
--
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