arturobernalg opened a new pull request, #412:
URL: https://github.com/apache/httpcomponents-core/pull/412

   Title: Refactor Synchronized Blocks to Use ReentrantLock 
   
   
   This commit replaces instances of 'synchronized' keyword with the explicit 
use of 'ReentrantLock' to provide more advanced synchronization mechanisms. 
   
   Changes include:
   - Replaced 'synchronized' methods with methods that use a 'ReentrantLock' 
for managing state.
   - Modified methods to use the 'lock' and 'unlock' methods of 'ReentrantLock' 
to ensure safe execution of critical sections.
   
   
   These changes provide more granular control over locks, fair locking 
behavior, and the ability to interrupt thread waiting for a lock or timeout if 
a lock cannot be obtained immediately.
   
   


-- 
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: dev-unsubscr...@hc.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org
For additional commands, e-mail: dev-h...@hc.apache.org

Reply via email to