~ubuntu-branches/ubuntu/trusty/wvstreams/trusty

« back to all changes in this revision

Viewing changes to linuxstreams/wvdsp.cc

  • Committer: Bazaar Package Importer
  • Author(s): Peter Eisentraut
  • Date: 2008-04-05 14:47:52 UTC
  • mfrom: (0.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080405144752-gka8v86xuo52fmto
Tags: 4.4.1-0.2
* Non-maintainer upload.
* Fixed dependency information LSB header in init.d script
  (closes: #470067)

Show diffs side-by-side

added added

removed removed

Lines of Context:
139
139
}
140
140
 
141
141
 
142
 
bool WvDsp::pre_select(SelectInfo &si)
 
142
void WvDsp::pre_select(SelectInfo &si)
143
143
{
144
 
    bool ret = false;
145
144
 
146
145
/*
147
146
    size_t rleft = rcircle.used(), wleft = wcircle.used();
157
156
    {
158
157
        rloop.drain();
159
158
        if (rcircle.used())
160
 
            return true;
 
159
            return;
161
160
        else
162
 
            ret |= rloop.pre_select(si);
 
161
            rloop.pre_select(si);
163
162
    }
164
 
    
165
 
    if (si.wants.writable)
166
 
        return true;
167
 
    
168
 
    return ret;
169
163
}
170
164
 
171
165