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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
