コード例 #1
0
void CTLSStorageInstance::FreeStorageBlock(CTLSStorageBlock *psbStorageBlock)
{
	const int iValueCount = GetValueCount();
	
	CTLSStorageArray *psaArrayInstance = psbStorageBlock->GetHostArray();
	psaArrayInstance->FreeStorageBlockOnThreadExit(psbStorageBlock, iValueCount);
}
コード例 #2
0
bool CTLSStorageInstance::FindFreeStorageBlockFromArray(CTLSStorageBlock *&psbOutStorageBlock, 
	CTLSStorageArray *psaArrayInstance)
{
	tlsindextype iValueCount = GetValueCount();
	bool bIsManualCleanup = GetThreadManualCleanupFlag();

	return psaArrayInstance->FindFreeStorageBlock(psbOutStorageBlock, iValueCount, bIsManualCleanup);
}
コード例 #3
0
ファイル: MP4Metadata.cpp プロジェクト: saki-saki/SYEngine
const char* MP4MediaFormat::GetValueName(unsigned index)
{
	if (index >= GetValueCount())
		return nullptr;
	if (_core->InternalGetCore()->GetTags()->GetCount() == 0)
		return nullptr;
	return _core->InternalGetCore()->GetTags()->Get(index)->Name;
}
コード例 #4
0
void CTLSStorageInstance::FreeStorageArrayList(CTLSStorageArray *psaStorageArrayList)
{
	const tlsindextype iValueCount = GetValueCount();
	
	while (psaStorageArrayList)
	{
		CTLSStorageArray *psaStorageNextArray = psaStorageArrayList->GetNextArray();

		psaStorageArrayList->FreeInstance(iValueCount);
		
		psaStorageArrayList = psaStorageNextArray;
	}
}
コード例 #5
0
	inline tlsindextype RetrieveValueCount() const { return GetValueCount(); }
コード例 #6
0
CTLSStorageArray *CTLSStorageInstance::AllocateStorageArray()
{
	const tlsindextype iValueCount = GetValueCount();

	return CTLSStorageArray::AllocateInstance(iValueCount);
}