How to create a data lock?
==========
这个问题的答案是不是:
Lock lock1=new Lock();
?
或用synchronized implicitly to get the lock of data ?
Z****e 发帖数: 2999
2
Lock is an interface, you cannot instantiate it.
I think more context is needed to answer your question
【在 x****y 的大作中提到】 : How to create a data lock? : ========== : 这个问题的答案是不是: : Lock lock1=new Lock(); : ? : 或用synchronized implicitly to get the lock of data ?