You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "swebb2066 (via GitHub)" <gi...@apache.org> on 2023/02/06 03:14:10 UTC

[GitHub] [logging-log4cxx] swebb2066 commented on pull request #190: Prevent priority inversions when logging from multiple threads

swebb2066 commented on PR #190:
URL: https://github.com/apache/logging-log4cxx/pull/190#issuecomment-1418443566

   Having looked deeper at the [Linux futex docs](https://man7.org/linux/man-pages/man2/futex.2.html) and [the glibc pthread implementation](https://github.com/lattera/glibc.git/nptl/pthread_mutex_lock.c), I now believe glibc does do priority inheritance locking by default.
   
   It looks like it is not necessary to explicitly set the PRIO_INHERIT protocol on a mutex. `pthread_mutex_lock.c` only uses `FUTEX_LOCK_PI` and does not use `FUTEX_WAIT`.
   
   This PR is no longer necessary


-- 
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: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org