Logo Search packages:      
Sourcecode: djvulibre version File versions

int DjVuDocument::wait_get_pages_num ( void   )  const

Wait until we known the number of pages and return.

Definition at line 471 of file DjVuDocument.cpp.

References GMonitor::enter(), get_pages_num(), GMonitor::leave(), and GMonitor::wait().

Referenced by writeDjVuXML().

  GSafeFlags &f=const_cast<GSafeFlags &>(flags);
  while(!(f & DOC_TYPE_KNOWN) &&
        !(f & DOC_INIT_FAILED) &&
        !(f & DOC_INIT_OK)) f.wait();
  return get_pages_num();

Generated by  Doxygen 1.6.0   Back to index