Creates a {@code Striped<Lock>} with eagerly initialized, strongly referenced locks. Every lock is reentrant. @param stripes the minimum number of stripes (locks) required @return a new {@code Striped<Lock>}
(int stripes)
| 206 | * @return a new {@code Striped<Lock>} |
| 207 | */ |
| 208 | public static Striped<Lock> lock(int stripes) { |
| 209 | return custom(stripes, PaddedLock::new); |
| 210 | } |
| 211 | |
| 212 | /** |
| 213 | * Creates a {@code Striped<Lock>} with lazily initialized, weakly referenced locks. Every lock is |