Ihar Hancharenka 759967edf2 m
2023-08-27 11:18:25 +03:00

10 строки
381 B
Plaintext

2023
https://questdb.io/blog/concurrent-lockfree-datastructure-design-walkthrough/
https://stackoverflow.com/questions/6965731/are-locks-autocloseable
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/concurrent/locks/ReentrantLock.html
... like synchronized methods and statements, but with extended capabilities.
if (!tryLock())
throw ...