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