Changeset 813 for branches

Show
Ignore:
Timestamp:
01/05/08 12:14:12 (16 years ago)
Author:
ppalmers
Message:

small simplification

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/api-cleanup/src/libstreaming/generic/PortManager.cpp

    r811 r813  
    3636 
    3737PortManager::PortManager() { 
    38  
    3938} 
    4039 
  • branches/api-cleanup/src/libstreaming/generic/StreamProcessor.cpp

    r811 r813  
    8888        debugOutput(DEBUG_LEVEL_VERBOSE,"Could not unregister stream processor with the Iso manager\n"); 
    8989    } 
     90    // make the threads leave the wait condition 
     91    POST_SEMAPHORE; 
    9092    sem_destroy(&m_signal_semaphore); 
    91  
    92     // FIXME: how do we ensure that nobody is using us? 
    9393 
    9494    if (m_data_buffer) delete m_data_buffer; 
     
    12771277        case ePS_Created: 
    12781278            assert(m_data_buffer); 
    1279             // object just created 
    1280             result = m_data_buffer->init(); 
    12811279 
    12821280            // prepare the framerate estimate 
  • branches/api-cleanup/src/libutil/TimestampedBuffer.cpp

    r807 r813  
    275275unsigned int TimestampedBuffer::getBufferSpace() { 
    276276    return ffado_ringbuffer_write_space(m_event_buffer)/(m_bytes_per_frame); 
    277 } 
    278  
    279 /** 
    280  * \brief Initializes the TimestampedBuffer 
    281  * 
    282  * Initializes the TimestampedBuffer, should be called before anything else 
    283  * is done. 
    284  * 
    285  * @return true if successful 
    286  */ 
    287 bool TimestampedBuffer::init() { 
    288     return true; 
    289277} 
    290278 
  • branches/api-cleanup/src/libutil/TimestampedBuffer.h

    r807 r813  
    8989        virtual ~TimestampedBuffer(); 
    9090 
    91         /** 
    92          * @brief waits for the availability of frames (blocking) 
    93          * @param nframes number of frames 
    94          * 
    95          * @return true if frames are available, false if not (e.g. signal occurred) 
    96          */ 
    97         bool waitForFrames(unsigned int nframes); 
    98  
    99         /** 
    100          * @brief waits for the availability of frames (blocking) 
    101          * 
    102          * waits for one update period of frames 
    103          * 
    104          * @return true if frames are available, false if not (e.g. signal occurred) 
    105          */ 
    106         bool waitForFrames(); 
    107  
    108         /** 
    109          * @brief waits for the availability of frames (non-blocking) 
    110          * @param nframes number of frames 
    111          * 
    112          * @return true if frames are available, false if not 
    113          */ 
    114         bool tryWaitForFrames(unsigned int nframes); 
    115  
    116         /** 
    117          * @brief waits for the availability of frames (non-blocking) 
    118          * 
    119          * waits for one update period of frames 
    120          * 
    121          * @return true if frames are available, false if not 
    122          */ 
    123         bool tryWaitForFrames(); 
    124  
    12591        bool writeDummyFrame(); 
    12692        bool dropFrames ( unsigned int nbframes ); 
     
    134100        bool blockProcessReadFrames ( unsigned int nbframes ); 
    135101 
    136         bool init(); 
    137102        bool prepare(); 
    138103        bool clearBuffer(); 
  • branches/api-cleanup/tests/test-timestampedbuffer.cpp

    r783 r813  
    282282    t->setVerboseLevel(arguments.verbose); 
    283283 
    284     t->init(); 
    285  
    286284    // Setup the buffer 
    287285    t->setBufferSize(arguments.buffersize);