Logo Search packages:      
Sourcecode: qcomicbook version File versions  Download package

void ImgLoaderThread::request ( int  first,
int  n 
) [virtual]

Appends few pages to the list of pages to load.

Parameters:
first starting page
n number of pages to load in turn

Definition at line 59 of file imgloader.cpp.

References mtx, prio, and requests.

{
      mtx.lock();
      const int last = first + n;
      for (int i=first; i<last; i++)
            if (requests.contains(i) == 0)
                  requests.append(i);
      if (!running() && !stopped)
      {
            mtx.unlock();
            start(prio);
      }
      else
            mtx.unlock();
}


Generated by  Doxygen 1.6.0   Back to index