please include function coresToUse. static AutoCloseable tempSetCoresToUse(int n) { ret tempSetTL(coresToUse_tl, n); }