You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
342 B
19 lines
342 B
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();
|
|
}
|
|
}
|
|
```
|