当前位置: 首页>>代码示例>>C++>>正文


C++ DeleteCriticalSection函数代码示例

本文整理汇总了C++中DeleteCriticalSection函数的典型用法代码示例。如果您正苦于以下问题:C++ DeleteCriticalSection函数的具体用法?C++ DeleteCriticalSection怎么用?C++ DeleteCriticalSection使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了DeleteCriticalSection函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: DeleteCriticalSection

CCritSection::~CCritSection()
{
	DeleteCriticalSection(&m_CS);
}
开发者ID:ddavison,项目名称:Jaangle,代码行数:4,代码来源:ALog.cpp

示例2: Uninitialize

CNdasServiceDeviceEventHandler::~CNdasServiceDeviceEventHandler()
{
	Uninitialize();
	DeleteCriticalSection(&m_DevNotifyMapSection);
}
开发者ID:tigtigtig,项目名称:ndas4windows,代码行数:5,代码来源:ndaspnp.cpp

示例3: pthread_mutex_destroy

int pthread_mutex_destroy(pthread_mutex_t *mutex)
{
	DeleteCriticalSection((_pthread_mutex_t *) mutex);
	return 0;
}
开发者ID:Abyss116,项目名称:luaplus51-all,代码行数:5,代码来源:pt.c

示例4: vlc_mutex_destroy

void vlc_mutex_destroy (vlc_mutex_t *p_mutex)
{
    assert (p_mutex->dynamic);
    DeleteCriticalSection (&p_mutex->mutex);
}
开发者ID:BossKing,项目名称:vlc,代码行数:5,代码来源:thread.c

示例5: DeleteCriticalSection

MutexCS::~MutexCS()
{
    DeleteCriticalSection(&m_criticalSection);
}
开发者ID:Jonnyliu,项目名称:lochsemu,代码行数:4,代码来源:parallel.cpp

示例6: DECLINLINE

DECLINLINE(int) RTCritSectDelete(PCRITICAL_SECTION pCritSect)
{
    DeleteCriticalSection(pCritSect);
    return VINF_SUCCESS;
}
开发者ID:svn2github,项目名称:virtualbox,代码行数:5,代码来源:tstRTCritSect.cpp

示例7: wan


//.........这里部分代码省略.........
	
	if ( SetBoolInBlob(hFilterBlob, OWNER_NPP, CATEGORY_CONFIG, TAG_INTERFACE_REALTIME_CAPTURE, TRUE) != NMERR_SUCCESS )
	{
		DestroyBlob( hFilterBlob);
		goto error;
	}

	if ( SetBoolInBlob(hFilterBlob, OWNER_NPP, CATEGORY_LOCATION, TAG_RAS, TRUE) != NMERR_SUCCESS )
	{
		DestroyBlob( hFilterBlob);
		goto error;
	}

	if ( GetNPPBlobTable(hFilterBlob, &pBlobTable) != NMERR_SUCCESS )
	{
		DestroyBlob( hFilterBlob);
		goto error;
	}

	DestroyBlob (hFilterBlob);

	if ( pBlobTable->dwNumBlobs == 0 || pBlobTable->dwNumBlobs > 1)
	{
		///fixme.....
		for ( i = 0 ; i < pBlobTable->dwNumBlobs ; i++ )
			DestroyBlob(pBlobTable->hBlobs[i]);
		
		GlobalFree(pBlobTable);
		goto error;
	}

	pWanAdapter->hCaptureBlob = pBlobTable->hBlobs[0];

	GlobalFree(pBlobTable);

	InitializeCriticalSection(&pWanAdapter->CriticalSection);

	pWanAdapter->hReadEvent = CreateEvent(NULL, TRUE, FALSE, NULL);

	if ( pWanAdapter->hReadEvent == NULL )
		goto error;

#ifdef HAVE_BUGGY_TME_SUPPORT
	pWanAdapter->MemEx.buffer = (PUCHAR)GlobalAlloc(GPTR, DEFAULT_MEM_EX_SIZE);
	if (pWanAdapter->MemEx.buffer == NULL)
		goto error;
	
	pWanAdapter->MemEx.size = DEFAULT_MEM_EX_SIZE;
	pWanAdapter->Tme.active = TME_NONE_ACTIVE;
#endif //HAVE_BUGGY_TME_SUPPORT

	if (CreateNPPInterface(pWanAdapter->hCaptureBlob, IID_IRTC, (void**) &pWanAdapter->pIRTC) == NMERR_SUCCESS && pWanAdapter->pIRTC != NULL) 
	{
		//create OK
		if (pWanAdapter->pIRTC->Connect(pWanAdapter->hCaptureBlob, NULL, WanPacketReceiverCallback, (LPVOID)pWanAdapter , NULL) == NMERR_SUCCESS)
		{
			//connect OK
			if (pWanAdapter->pIRTC->Start() == NMERR_SUCCESS)
			{
				return pWanAdapter;
			}
			else
			{
				pWanAdapter->pIRTC->Disconnect();
				pWanAdapter->pIRTC->Release();
				goto error;
			}
		}
		else
		{
			pWanAdapter->pIRTC->Release();
			goto error;
		}
	}
	else
	{
		goto error;
	}

	//awfully never reached
//	return NULL;

error:

	if (pWanAdapter != NULL)
	{
		if (pWanAdapter->hReadEvent != NULL)
			CloseHandle(pWanAdapter->hReadEvent);

		DeleteCriticalSection(&pWanAdapter->CriticalSection);
		if (pWanAdapter->hCaptureBlob)
			DestroyBlob(pWanAdapter->hCaptureBlob);

		GlobalFree(pWanAdapter);
	}

	CoUninitialize();
	
	return NULL;
}
开发者ID:OPEXGroup,项目名称:winpcap,代码行数:101,代码来源:WanPacket.cpp

示例8: DeleteCriticalSection

MutexImpl::~MutexImpl()
{
	DeleteCriticalSection(&_cs);
}
开发者ID:Bing4Autodesk,项目名称:CEF3,代码行数:4,代码来源:Mutex_WIN32.cpp

示例9: DeleteCriticalSection

CriticalSection::~CriticalSection() noexcept        { DeleteCriticalSection ((CRITICAL_SECTION*) lock); }
开发者ID:Ixox,项目名称:preenfm2Controller,代码行数:1,代码来源:juce_win32_Threads.cpp

示例10: DeleteCriticalSection

CVideoProcessor::~CVideoProcessor()
{
	DeleteCriticalSection(&m_csLock);
}
开发者ID:jscr93,项目名称:PDI2015B,代码行数:4,代码来源:VideoProcessor.cpp

示例11: DeleteCriticalSection

 _PPLXIMP critical_section_impl::~critical_section_impl()
 {
     DeleteCriticalSection(reinterpret_cast<LPCRITICAL_SECTION>(&_M_impl));
 }
开发者ID:EvanCui,项目名称:cpprestsdk,代码行数:4,代码来源:pplxwin.cpp

示例12: Clear

 ~AbortCookieManager() {
     Clear();
     DeleteCriticalSection(&cookieAccess);
 }
开发者ID:codepongo,项目名称:sumatrapdf,代码行数:4,代码来源:Print.cpp

示例13: FreeData

Player::~Player()
{
	FreeData();
	DeleteCriticalSection(&cs);
}
开发者ID:BackupTheBerlios,项目名称:mgoodies-svn,代码行数:5,代码来源:player.cpp

示例14: CloseDevice

//关闭线程,释放资源
CWavePlay::~CWavePlay(void)
{
	CloseDevice();
	DeleteCriticalSection(&_waveCriticalSection);
}
开发者ID:mildrock,项目名称:Media,代码行数:6,代码来源:WavePlay.cpp

示例15: VisualCppMutexDestroy

static void VisualCppMutexDestroy(PlatformSpecificMutex mutex)
{
	CRITICAL_SECTION *critical_section = (CRITICAL_SECTION*)mutex;
	DeleteCriticalSection(critical_section);
	delete critical_section;
}
开发者ID:Andne,项目名称:cpputest,代码行数:6,代码来源:UtestPlatform.cpp


注:本文中的DeleteCriticalSection函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。