Logo Search packages:      
Sourcecode: pan version File versions

void DataImpl::xover_unref ( const Quark group  )  [virtual]

The last call to xover_unref() for a group can indicate to Data that it's safe to tear down any internal scaffolding set up in xover_ref().

Implements pan::Data.

Definition at line 195 of file xover.cc.

References pan::DataImpl::XOverEntry::_added_batch, pan::DataImpl::XOverEntry::_changed_batch, pan::DataImpl::XOverEntry::refcount, xover_clear_workarea(), and xover_get_workarea().

{
  XOverEntry& workarea (xover_get_workarea (group));
  if (!--workarea.refcount)
  {
    on_articles_added (group, workarea._added_batch);
    workarea._added_batch.clear();

    on_articles_changed (workarea._changed_batch, true);
    workarea._changed_batch.clear();

    xover_clear_workarea (group);
  }

  unref_group (group);
}


Generated by  Doxygen 1.6.0   Back to index