Lines Matching refs:State4

390 bool testSimplifyx(SkPath& path, bool useXor, SkPath& out, State4& state,
474 State4 threadState[maxThreadsAllocated];
479 State4* State4::queue = NULL;
480 pthread_mutex_t State4::addQueue = PTHREAD_MUTEX_INITIALIZER;
481 pthread_cond_t State4::checkQueue = PTHREAD_COND_INITIALIZER;
483 State4::State4() {
488 void createThread(State4* statePtr, void* (*testFun)(void* )) {
496 State4* statePtr;
498 pthread_mutex_lock(&State4::addQueue);
515 while (!State4::queue) {
517 pthread_cond_wait(&State4::checkQueue, &State4::addQueue);
519 statePtr = State4::queue;
527 State4::queue = NULL;
530 State4::queue = &threadState[index];
535 State4::queue ? State4::queue->index : -1);
538 pthread_mutex_unlock(&State4::addQueue);
589 State4* statePtr = &threadState[index];
600 void outputProgress(const State4& state, const char* pathStr, SkPath::FillType pathFillType) {
627 void outputProgress(const State4& state, const char* pathStr, ShapeOp op) {
658 void outputToStream(const State4& state, const char* pathStr, const char* pathPrefix,
703 bool runNextTestSet(State4& state) {
707 pthread_mutex_lock(&State4::addQueue);
709 State4::queue = &state;
712 pthread_cond_signal(&State4::checkQueue);
715 pthread_cond_wait(&state.initialized, &State4::addQueue);
717 pthread_mutex_unlock(&State4::addQueue);
724 pthread_mutex_lock(&State4::addQueue);
728 while (!State4::queue) {
730 pthread_cond_wait(&State4::checkQueue, &State4::addQueue);
732 while (State4::queue) {
735 State4::queue->last = true;
736 State4* next = NULL;
738 State4& test = threadState[index];
744 State4::queue->index, next ? next->index : -1);
745 pthread_cond_signal(&State4::queue->initialized);
746 State4::queue = next;
749 pthread_mutex_unlock(&State4::addQueue);