Lines Matching refs:ts
97 ThreadState* ts = (ThreadState*) thread_store_get( &tls ); in getThreadState() local
98 if (ts) return ts; in getThreadState()
99 ts = new ThreadState; in getThreadState()
100 thread_store_set( &tls, ts, threadDestructor ); in getThreadState()
101 return ts; in getThreadState()
268 ThreadState* ts = getThreadState(); in getBuffer() local
269 if (ts) { in getBuffer()
270 while (ts->states.size() <= (size_t)mIndex) ts->states.add(nullptr); in getBuffer()
271 BufferState* bs = ts->states[mIndex].get(); in getBuffer()
274 ts->states.editItemAt(mIndex) = new BufferState(mIndex); in getBuffer()
275 bs = ts->states[mIndex].get(); in getBuffer()