java - Reentrant Read/Write locks in eclipse have two lock/unlock methods -
i noticed while calling lock/unlock on reentrantreadwrite lock, prompt 2 lock , unlock methods. 
for example, in writelock have lock() -75% , lock() no %. both of these have same documentations. tried find reason online, not find explanation. bug in eclipse?
you might want double-check method names.
reentrantreadwritelock doesn't have lock method. has public reentrantreadwritelock.readlock readlock() , public reentrantreadwritelock.writelock writelock(). both implement lock interface , have lock(), lockinterruptibly(), unlock(), , trylock() methods.
the writelock has few methods since write locks exclusive.
Comments
Post a Comment