示例#1
0
dpoCKernel::~dpoCKernel()
{
    DEBUG_LOG_DESTROY("dpoCKernel", this);
    if (kernel != NULL) {
        clReleaseKernel(kernel);
    }
    parent = NULL;
}
示例#2
0
dpoCContext::~dpoCContext()
{
	DEBUG_LOG_DESTROY("dpoCContext", this);
	if (buildLog != NULL) {
		nsMemory::Free(buildLog);
	}
	if (cmdQueue != NULL) {
		clReleaseCommandQueue(cmdQueue);
	}
}
示例#3
0
CData::~CData()
{
    DEBUG_LOG_DESTROY("CData", this);
    if (m_memObj) {
#ifdef INCREMENTAL_MEM_RELEASE
        deferFree(m_memObj);
#else // INCREMENTAL_MEM_RELEASE
        clReleaseMemObject(m_memObj);
#endif // INCREMENTAL_MEM_RELEASE
    }
    if (m_queue && m_isRetained) {
        DEBUG_LOG_STATUS("~CData", "releasing queue object");
        clReleaseCommandQueue(m_queue);
    }
    m_parent = 0;
}
示例#4
0
dpoCContext::~dpoCContext()
{
	DEBUG_LOG_DESTROY("dpoCContext", this);
#ifdef INCREMENTAL_MEM_RELEASE
	// disable deferred free
	defer_max = 0;
	// free the pending queue
	while (CheckFree()) {};
	nsMemory::Free(defer_list);
	defer_list = NULL;
#endif /* INCREMENTAL_MEM_RELEASE */
	if (buildLog != NULL) {
		nsMemory::Free(buildLog);
	}
	if (cmdQueue != NULL) {
		clReleaseCommandQueue(cmdQueue);
	}
}
示例#5
0
dpoCInterface::~dpoCInterface()
{
	DEBUG_LOG_DESTROY("dpoCInterface", this);
}
示例#6
0
CInterface::~CInterface()
{
	DEBUG_LOG_DESTROY("CInterface", this);
	if(platforms!=NULL)
		platforms = NULL;
}