Searched refs:ThreadState (Results 1 – 6 of 6) sorted by relevance
43 mWorkerThread.run([=](ThreadState *threadState) { in setWindow()65 mWorkerThread.run([this](ThreadState *threadState) { in start()77 mWorkerThread.run([=](ThreadState *threadState) { threadState->isStarted = false; }); in stop()87 [=](ThreadState *threadState) { if (threadState->isStarted) draw(threadState); }); in requestDraw()90 Renderer::ThreadState::ThreadState() { in ThreadState() function in samples::Renderer::ThreadState132 Renderer::ThreadState::~ThreadState() { in ~ThreadState()138 void Renderer::ThreadState::onSettingsChanged(const Settings *settings) { in onSettingsChanged()143 void Renderer::ThreadState::clearSurface() { in clearSurface()151 bool Renderer::ThreadState::configHasAttribute(EGLint attribute, EGLint value) { in configHasAttribute()157 EGLBoolean Renderer::ThreadState::makeCurrent(EGLSurface surface) { in makeCurrent()[all …]
61 class ThreadState {63 ThreadState();65 ~ThreadState();92 void draw(ThreadState *threadState);95 WorkerThread<ThreadState> mWorkerThread = {"Renderer", Affinity::Odd};
29 template<class ThreadState>32 using Work = std::function<void(ThreadState *)>;38 auto settingsChanged = [this](ThreadState *threadState) { onSettingsChanged(threadState); }; in WorkerThread()76 void onSettingsChanged(ThreadState *threadState) { in onSettingsChanged()86 ThreadState threadState; in threadMain()114 std::queue<std::function<void(ThreadState *)>> mWorkQueue GUARDED_BY(mWorkMutex);
30 } ThreadState; typedef43 ThreadState* getThreadState() { in getThreadState()44 ThreadState* ptr; in getThreadState()46 if ((ptr = (ThreadState*)pthread_getspecific(ThreadStateKey)) == NULL) { in getThreadState()47 ptr = (ThreadState*)calloc(1, sizeof(ThreadState)); in getThreadState()126 ThreadState* state = getThreadState(); in eglMakeCurrent()
86 struct BufferedTextOutput::ThreadState struct in android::BufferedTextOutput95 BufferedTextOutput::ThreadState* BufferedTextOutput::getThreadState() in getThreadState()97 ThreadState* ts = (ThreadState*) thread_store_get( &tls ); in getThreadState()99 ts = new ThreadState; in getThreadState()106 delete ((ThreadState*)st); in threadDestructor()268 ThreadState* ts = getThreadState(); in getBuffer()
49 struct ThreadState;51 static ThreadState*getThreadState();