Lib/Runtime/Atomics.cpp
static void closeWaitList(Uptr address, WaitList* waitList)
{
	if(--waitList->numReferences == 0)
	{
		Platform::Mutex::Lock mapLock(addressToWaitListMapMutex);
		if(!waitList->numReferences)
		{
			WAVM_ASSERT(!waitList->wakeEvents.size());
			delete waitList;
			addressToWaitListMap.remove(address);
		}
	}
}
// Closes a wait list, deleting it and removing it from the global map if it was the last reference.
Closes a wait list, deleting it and removing it from the global map if it was the last reference.
Closes a wait list deleting it and removing it from the global map if it was the last reference .
static void closeWaitList(Uptr address, WaitList* waitList)
{
	if(--waitList->numReferences == 0)
	{
		Platform::Mutex::Lock mapLock(addressToWaitListMapMutex);
		if(!waitList->numReferences)
		{
			WAVM_ASSERT(!waitList->wakeEvents.size());
			delete waitList;
			addressToWaitListMap.remove(address);
		}
	}
}
static void closeWaitList ( Uptr address , WaitList * waitList ) { if ( -- waitList -> numReferences == 0 ) { Platform :: Mutex :: Lock mapLock ( addressToWaitListMapMutex ) ; if ( ! waitList -> numReferences ) { WAVM_ASSERT ( ! waitList -> wakeEvents . size ( ) ) ; delete waitList ; addressToWaitListMap . remove ( address ) ; } } }
Closes a wait list, deleting it and removing it from the global map if it was the last reference.
Closes a wait list deleting it and removing it from the global map if it was the last reference .