示例#1
0
void ListHookedDevice::push_back(ListHookedDevice::Item* newp) {
  if (!newp) return;

  last_ = newp->device_;
  list_.push_back(newp);

  IOLOG_DEVEL("ListHookedDevice::push_back list_.size = %d\n", static_cast<int>(list_.size()));

  refresh();
  start_refreshInProgressDevices_timer();
}
  void
  ListHookedDevice::push_back(ListHookedDevice::Item* newp)
  {
    if (! list_) return;
    if (! newp) return;

    last_ = newp->device_;
    list_->push_back(newp);

    // Call reset whenever the device status is changed.
    reset();

    IOLOG_DEVEL("ListHookedDevice::push_back list_->size = %d\n", static_cast<int>(list_->size()));

    refresh();
    start_refreshInProgressDevices_timer();
  }