Summary: As per title. Reviewed By: jvillard Differential Revision: D22019459 fbshipit-source-id: 87e5bed9dmaster
parent
23c1b4f960
commit
301580a819
@ -0,0 +1,18 @@
|
|||||||
|
A method implements an interface signature annotated with `@Lockless` but which transitively acquires a lock.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
```java
|
||||||
|
Interface I {
|
||||||
|
@Lockless
|
||||||
|
public void no_lock();
|
||||||
|
}
|
||||||
|
|
||||||
|
class C implements I {
|
||||||
|
private synchronized do_lock() {}
|
||||||
|
|
||||||
|
public void no_lock() { // this method should not acquire any locks
|
||||||
|
do_lock();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
Loading…
Reference in new issue