Guosmilesmile commented on PR #12810:
URL: https://github.com/apache/iceberg/pull/12810#issuecomment-2846901045

   Yes,It seems that these existing methods are more suitable than my original 
ones.I switch SharedCount to implement related functionality.
   
   On lock we set the counter to 1. (trySetCount(1))
   On unlock we set the counter to 0 (setCount(0))
   On isHeld we check the counter value (getCount()==1).
   


-- 
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: issues-unsubscr...@iceberg.apache.org

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


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

Reply via email to