예제 #1
0
/*********************************************************
	Suspend tasks for this module
*/
HRESULT myAppSuspendTasks(void)
{
	HRESULT hResult = NO_ERROR;

	hResult = TCTaskSuspend(myAppThreadID);
	if (hResult != NO_ERROR) return hResult;

	hResult = TCTaskSuspend(myMidiIndicateThreadID);
	if (hResult != NO_ERROR) return hResult;
	
	return hResult;
}
예제 #2
0
/*********************************************************
	Suspend tasks for this module
*/
HRESULT avsIntSuspendTasks(void)
{
	HRESULT hResult = NO_ERROR;

	// avs interrupt event handler thread
	hResult = TCTaskSuspend(avsIntEventThreadID);
	if (hResult != NO_ERROR) return hResult;

#ifdef _AVSINT_POLLING
	// avs interrupt handler thread
	hResult = TCTaskSuspend(avsIntThreadID);
	if (hResult != NO_ERROR) return hResult;
#endif //_AVSINT_POLLING

	return hResult;
}
예제 #3
0
/*********************************************************
	Suspend tasks for this module
*/
HRESULT avrDrdSuspendTasks(void)
{
	HRESULT hResult = NO_ERROR;

	// avrDrd handler thread
	hResult = TCTaskSuspend(avrDrdHandlerThreadID);
	if (hResult != NO_ERROR) return hResult;

	return hResult;
}
예제 #4
0
/*********************************************************
	Suspend tasks for this module
*/
HRESULT avcUnitNotifySuspendTasks(void)
{
    HRESULT hResult = NO_ERROR;

    // avcUnitNotify handler thread
    hResult = TCTaskSuspend(avcUnitNotifyThreadID);
    if (hResult != NO_ERROR) return hResult;

    return hResult;
}
예제 #5
0
/*********************************************************
	Suspend tasks for this module
*/
HRESULT cliCBSuspendTasks(void)
{
	HRESULT hResult = NO_ERROR;

#ifdef _CLICB_DEFERRED_TASK	
	// thread cli CB deferred task
	hResult = TCTaskSuspend(cliCBThreadID);
	if (hResult != NO_ERROR) return hResult;
#endif //_CLICB_DEFERRED_TASK

	return hResult;
}
예제 #6
0
/*********************************************************
	Suspend tasks for this module
*/
HRESULT grayEventSuspendTasks(void)
{
	HRESULT hResult = NO_ERROR;

#ifdef _GRAYINT_DEFERRED
	// gray deferred event handler thread
	hResult = TCTaskSuspend(grayDeferredThreadID);
	if (hResult != NO_ERROR) return hResult;
#endif //_GRAYINT_DEFERRED

#ifdef _GRAYINT_POLLING
	if (grayEventPollingEnable == TRUE)
	{
		// gray polling interrupt handler thread
		hResult = TCTaskSuspend(grayIntThreadID);
		if (hResult != NO_ERROR) return hResult;
	}
#endif //_GRAYINT_POLLING

	return hResult;
}
예제 #7
0
/*********************************************************
	Suspend tasks for this module
*/
HRESULT avcSuspendTasks(void)
{
	HRESULT hResult = NO_ERROR;

	// avc handler thread
	hResult = TCTaskSuspend(avcHandlerThreadID);
	if (hResult != NO_ERROR) return hResult;

	// avc unit threads
	hResult = avcUnitSuspendTasks();
	if (hResult != NO_ERROR) return hResult;

	return hResult;
}