[concurrency-interest] Lock & semaphore
Thu, 11 Sep 2003 13:48:21 +0200
Looking at the Semaphore and the Lock interface they both have almost
the same methods (with different names though).
void lock -
void lockInterruptibly - interrupted
bool trylock (timeunit) - interrupted
void acquire - interrupted
bool tryacquire (timeunit) - interrupted
I think it would be more consistent if _both_ lock and acquire either
threw an interrupted exception or didn't.