mirror of
https://github.com/Dark98/SliceBeam.git
synced 2026-07-04 08:39:04 +00:00
Public source code release
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package ru.ytkab0bp.slicebeam.utils;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
public class ThreadLocalDoubleArray extends ThreadLocal<double[]> {
|
||||
private final int size;
|
||||
|
||||
public ThreadLocalDoubleArray(int size) {
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
protected double[] initialValue() {
|
||||
return new double[size];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user