Searched refs:new_lock (Results 1 – 1 of 1) sorted by relevance
41 CRITICAL_SECTION *new_lock = malloc(sizeof(CRITICAL_SECTION)); in once() local42 InitializeCriticalSection(new_lock); in once()43 if (InterlockedCompareExchangePointer(lock_ptr, new_lock, NULL) != NULL) in once()45 DeleteCriticalSection(new_lock); in once()46 free(new_lock); in once()