Changeset 815 for branches/api-cleanup/src/libieee1394/IsoHandler.cpp
- Timestamp:
- 01/06/08 03:15:01 (16 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/api-cleanup/src/libieee1394/IsoHandler.cpp
r807 r815 174 174 IsoHandler::waitForClient() 175 175 { 176 debugOutput(DEBUG_LEVEL_VERBOSE, "waiting...\n");176 //debugOutput(DEBUG_LEVEL_VERBOSE, "waiting...\n"); 177 177 if(m_Client) { 178 178 bool result = m_Client->waitForSignal(); 179 debugOutput(DEBUG_LEVEL_VERBOSE, " returns %d\n", result);179 //debugOutput(DEBUG_LEVEL_VERBOSE, " returns %d\n", result); 180 180 return result; 181 181 } else { … … 188 188 IsoHandler::tryWaitForClient() 189 189 { 190 debugOutput(DEBUG_LEVEL_VERY_VERBOSE, "waiting...\n");190 //debugOutput(DEBUG_LEVEL_VERY_VERBOSE, "waiting...\n"); 191 191 if(m_Client) { 192 192 bool result = m_Client->tryWaitForSignal(); 193 debugOutput(DEBUG_LEVEL_VERY_VERBOSE, " returns %d\n", result);193 //debugOutput(DEBUG_LEVEL_VERY_VERBOSE, " returns %d\n", result); 194 194 return result; 195 195 } else { … … 202 202 IsoHandler::Execute() 203 203 { 204 debugOutput( DEBUG_LEVEL_VERY_VERBOSE, "%p: Execute thread...\n", this);204 //debugOutput( DEBUG_LEVEL_VERY_VERBOSE, "%p: Execute thread...\n", this); 205 205 206 206 // bypass if not running … … 214 214 // wait for the availability of frames in the client 215 215 // (blocking for transmit handlers) 216 #ifdef DEBUG 216 217 #if 0 //#ifdef DEBUG 217 218 if (getType() == eHT_Transmit) { 218 219 debugOutput(DEBUG_LEVEL_VERBOSE, "(%p) Waiting for Client to signal frame availability...\n", this); … … 256 257 return true; 257 258 #else 258 // iterate blocksif no 1394 data is available259 // iterate() is blocking if no 1394 data is available 259 260 // so poll'ing is not really necessary 260 261 261 bool result = true; 262 262 while(result && m_Client->canProcessPackets()) { 263 263 result = iterate(); 264 debugOutput(DEBUG_LEVEL_VERBOSE, "(%p, %s) Iterate returned: %d\n",265 this, (m_type==eHT_Receive?"Receive":"Transmit"), result);264 //debugOutput(DEBUG_LEVEL_VERBOSE, "(%p, %s) Iterate returned: %d\n", 265 // this, (m_type==eHT_Receive?"Receive":"Transmit"), result); 266 266 } 267 267 return result; … … 275 275 bool 276 276 IsoHandler::iterate() { 277 debugOutput(DEBUG_LEVEL_VERBOSE, "(%p, %s) Iterating ISO handler\n",278 this, (m_type==eHT_Receive?"Receive":"Transmit"));277 //debugOutput(DEBUG_LEVEL_VERBOSE, "(%p, %s) Iterating ISO handler\n", 278 // this, (m_type==eHT_Receive?"Receive":"Transmit")); 279 279 if(m_State == E_Running) { 280 280 #if ISOHANDLER_FLUSH_BEFORE_ITERATE