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. locks

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

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -