|
if ( pSerialHead->pHWObj->BindFlags & THREAD_AT_OPEN )
{
DEBUGMSG(ZONE_INIT|ZONE_OPEN,
(TEXT("COM_Open: Starting DispatchThread x%X\n\r"),
pOpenHead));
// Hook the interrupt and start the associated thread.
if ( ! StartDispatchThread( pSerialHead ) )
{
// Failed on InterruptInitialize or CreateThread. Bail.
DEBUGMSG(ZONE_INIT|ZONE_OPEN,
(TEXT("COM_Open: Failed StartDispatchThread x%X\n\r"),
pOpenHead));
goto OpenFail;
}
}
//========================================================
觉得这里StartDispatchThread还是不会被启动起来的.
|
|