Changeset 846

Show
Ignore:
Timestamp:
01/14/08 10:37:01 (15 years ago)
Author:
ppalmers
Message:

remove AGAIN useage (might cause deadlock)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/src/libstreaming/generic/StreamProcessor.cpp

    r841 r846  
    472472                    int semval; 
    473473                    sem_getvalue(&m_signal_semaphore, &semval); 
     474                    // NOTE: this can cause 2 posts to be done when the receiving thread 
     475                    //       decreases the semaphore but hasn't processed the frames yet 
    474476                    unsigned int signal_period = m_signal_period * (semval + 1) + m_signal_offset; 
    475477                    if(bufferfill >= signal_period) { 
     
    734736                } 
    735737            } 
    736             usleep(125); // only when using thread-per-handler 
    737             return RAW1394_ISO_AGAIN; 
    738 //             generateSilentPacketHeader(data, length, tag, sy, cycle, dropped_cycles, max_length); 
    739 //             generateSilentPacketData(data, length, tag, sy, cycle, dropped_cycles, max_length); 
    740 //             return RAW1394_ISO_DEFER; 
     738//             usleep(125); // only when using thread-per-handler 
     739//             return RAW1394_ISO_AGAIN; 
     740            generateSilentPacketHeader(data, length, tag, sy, cycle, dropped_cycles, max_length); 
     741            generateSilentPacketData(data, length, tag, sy, cycle, dropped_cycles, max_length); 
     742            return RAW1394_ISO_DEFER; 
    741743        } else { 
    742744            debugError("Invalid return value: %d\n", result);