本文整理汇总了C++中DeleteCriticalSection函数的典型用法代码示例。如果您正苦于以下问题:C++ DeleteCriticalSection函数的具体用法?C++ DeleteCriticalSection怎么用?C++ DeleteCriticalSection使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了DeleteCriticalSection函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: DeleteCriticalSection
CCritSection::~CCritSection()
{
DeleteCriticalSection(&m_CS);
}
示例2: Uninitialize
CNdasServiceDeviceEventHandler::~CNdasServiceDeviceEventHandler()
{
Uninitialize();
DeleteCriticalSection(&m_DevNotifyMapSection);
}
示例3: pthread_mutex_destroy
int pthread_mutex_destroy(pthread_mutex_t *mutex)
{
DeleteCriticalSection((_pthread_mutex_t *) mutex);
return 0;
}
示例4: vlc_mutex_destroy
void vlc_mutex_destroy (vlc_mutex_t *p_mutex)
{
assert (p_mutex->dynamic);
DeleteCriticalSection (&p_mutex->mutex);
}
示例5: DeleteCriticalSection
MutexCS::~MutexCS()
{
DeleteCriticalSection(&m_criticalSection);
}
示例6: DECLINLINE
DECLINLINE(int) RTCritSectDelete(PCRITICAL_SECTION pCritSect)
{
DeleteCriticalSection(pCritSect);
return VINF_SUCCESS;
}
示例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;
}
示例8: DeleteCriticalSection
MutexImpl::~MutexImpl()
{
DeleteCriticalSection(&_cs);
}
示例9: DeleteCriticalSection
CriticalSection::~CriticalSection() noexcept { DeleteCriticalSection ((CRITICAL_SECTION*) lock); }
示例10: DeleteCriticalSection
CVideoProcessor::~CVideoProcessor()
{
DeleteCriticalSection(&m_csLock);
}
示例11: DeleteCriticalSection
_PPLXIMP critical_section_impl::~critical_section_impl()
{
DeleteCriticalSection(reinterpret_cast<LPCRITICAL_SECTION>(&_M_impl));
}
示例12: Clear
~AbortCookieManager() {
Clear();
DeleteCriticalSection(&cookieAccess);
}
示例13: FreeData
Player::~Player()
{
FreeData();
DeleteCriticalSection(&cs);
}
示例14: CloseDevice
//关闭线程,释放资源
CWavePlay::~CWavePlay(void)
{
CloseDevice();
DeleteCriticalSection(&_waveCriticalSection);
}
示例15: VisualCppMutexDestroy
static void VisualCppMutexDestroy(PlatformSpecificMutex mutex)
{
CRITICAL_SECTION *critical_section = (CRITICAL_SECTION*)mutex;
DeleteCriticalSection(critical_section);
delete critical_section;
}