Re: Enrich the Lock interface

2023-08-21 Thread David Holmes
dedicated mailing list for concurrency in Java. Sadly, that list has been defunct for quite some time now. > > -Pavel > >> On 21 Aug 2023, at 13:18, Albert Attard mailto:albertatt...@gmail.com>> wrote: >> >> Hello. >>

Re: Enrich the Lock interface

2023-08-21 Thread Albert Attard
been discussed on concurrency-interest (at cs.oswego.edu < > http://cs.oswego.edu/>), a dedicated mailing list for concurrency in > Java. Sadly, that list has been defunct for quite some time now. > > > > -Pavel > > > >> On 21 Aug 2023, at 13:18, Albert At

Re: Enrich the Lock interface

2023-08-21 Thread Pavel Rappo
ed on concurrency-interest (at cs.oswego.edu >> <http://cs.oswego.edu/>), a dedicated mailing list for concurrency in Java. >> Sadly, that list has been defunct for quite some time now. >> >> -Pavel >> >>> On 21 Aug 2023, at 13:18, Albert Attard wrote

Re: Enrich the Lock interface

2023-08-21 Thread John Hendrikx
een defunct for quite some time now. -Pavel On 21 Aug 2023, at 13:18, Albert Attard wrote: Hello. I hope all is well. Do you believe it is a bad idea to enrich the Lock interface with a set of default methods that safely release the lock once ready? Consider the following (dangerous) exam

Re: Enrich the Lock interface

2023-08-21 Thread Pavel Rappo
t;), a dedicated mailing list for concurrency in Java. Sadly, that list has been defunct for quite some time now. -Pavel > On 21 Aug 2023, at 13:18, Albert Attard wrote: > > Hello. > > I hope all is well. > > Do you believe it is a bad idea to enrich the Lock interface with

Enrich the Lock interface

2023-08-21 Thread Albert Attard
Hello. I hope all is well. Do you believe it is a bad idea to enrich the Lock interface with a set of default methods that safely release the lock once ready? Consider the following (dangerous) example. final Lock lock = new ReentrantLock (); lock.lock(); /* Code that may throw an exception