Lines Matching refs:state
27 * Shared-context state
54 * Allocate and initialize a shared context state structure.
132 /* Mutex and timestamp for texobj state validation */
333 * Deallocate a shared state object and all children structures.
336 * \param shared shared state pointer.
472 * If ptr's refcount goes to zero, free the shared state.
477 struct gl_shared_state *state)
479 if (*ptr == state)
483 /* unref old state */
500 if (state) {
501 /* reference new state */
502 simple_mtx_lock(&state->Mutex);
503 state->RefCount++;
504 *ptr = state;
505 simple_mtx_unlock(&state->Mutex);