void clear() { m_list_.DeleteItem(m_list_.GetSelectionMark()); // m_list_.SelectItem(0); sync_list(true); }
void clear() { // Prevent changing states from signaling another sync hal::mutex_update_lock<L> lock(list_); list_.DeleteItem(selectedIndex()); sync_list(true); }
void setSelected(int itemPos) { LVITEM lvi = { LVIF_STATE }; lvi.state = LVIS_SELECTED; lvi.stateMask = LVIS_SELECTED; m_list_.SetItemState(itemPos, &lvi); m_list_.SetSelectionMark(itemPos); sync_list(true); }
/* * Called with the spinlock already held.. */ static void sync_all_inodes(void) { struct super_block * sb = sb_entry(super_blocks.next); for (; sb != sb_entry(&super_blocks); sb = sb_entry(sb->s_list.next)) { if (!sb->s_dev) continue; sync_list(&sb->s_dirty); } }
void clear_all() { // Prevent changing states from signaling another sync hal::mutex_update_lock<L> lock(list_); list_.DeleteAllItems(); all_selected_.clear(); sync_list(true); }
void setSelected(int itemPos) { hal::event_log().post(shared_ptr<hal::EventDetail>(new hal::EventDebug(hal::event_logger::info, (hal::wform(L"Set Selected %1%") % itemPos).str().c_str()))); LVITEM lvi = { LVIF_STATE }; lvi.state = LVIS_SELECTED|LVIS_FOCUSED; lvi.stateMask = LVIS_SELECTED|LVIS_FOCUSED; list_.SetItemState(itemPos, &lvi); list_.SetSelectionMark(itemPos); sync_list(true); }
void clearAllSelected() { int total = m_list_.GetItemCount(); for (int i=total-1; i>=0; --i) { UINT flags = m_list_.GetItemState(i, LVIS_SELECTED); if (flags && LVIS_SELECTED) m_list_.DeleteItem(i); } all_selected_.clear(); // m_list_.SelectItem(0); sync_list(true); }
void clear_all_selected() { // Prevent changing states from signaling another sync hal::mutex_update_lock<L> lock(list_); int total = list_.GetItemCount(); for (int i=total-1; i>=0; --i) { UINT flags = list_.GetItemState(i, LVIS_SELECTED); if (flags && LVIS_SELECTED) list_.DeleteItem(i); } all_selected_.clear(); sync_list(true); }
/* * "sync_inodes()" goes through the super block's dirty list, * writes them out, and puts them back on the normal list. */ void sync_inodes(kdev_t dev) { struct super_block * sb = sb_entry(super_blocks.next); /* * Search the super_blocks array for the device(s) to sync. */ spin_lock(&inode_lock); for (; sb != sb_entry(&super_blocks); sb = sb_entry(sb->s_list.next)) { if (!sb->s_dev) continue; if (dev && sb->s_dev != dev) continue; sync_list(&sb->s_dirty); if (dev) break; } spin_unlock(&inode_lock); }
void clearAll() { m_list_.DeleteAllItems(); all_selected_.clear(); sync_list(true); }
void setSelected(const string& sel) { selected_ = sel; sync_list(false); }
void dir_cpi_impl::sync_get_num_entries (std::size_t & num) { entries_.clear(); sync_list(entries_, "*", saga::name_space::None); num = entries_.size(); }