/* * Remove breakpoint. * arguments: * file - breakpoints filename * line - breakpoints line */ void breaks_remove(const char* file, int line) { /* do not process async break manipulation on modules that do not support async interuppt */ enum dbs state = debug_get_state(); if (DBS_RUNNING == state && !debug_supports_async_breaks()) return; /* lookup for breakpoint */ breakpoint* bp = NULL; if (!(bp = breaks_lookup_breakpoint(file, line))) return; /* handle removing instantly if debugger is idle or stopped and request debug module interruption overwise */ if (DBS_IDLE == state) { on_remove(bp); config_set_debug_changed(); } else if (DBS_STOPPED == state) breaks_remove_debug(bp); else if (DBS_STOP_REQUESTED != state) debug_request_interrupt((bs_callback)breaks_remove_debug, (gpointer)bp); }
static void on_remove_list(GList *list) { GList *iter; for (iter = list; iter; iter = iter->next) { on_remove((breakpoint*)iter->data); } }
static void breaks_remove_debug(breakpoint* bp) { if (debug_remove_break(bp)) { /* remove markers, update treeview */ on_remove(bp); /* mark config for saving */ config_set_debug_changed(); } else dialogs_show_msgbox(GTK_MESSAGE_ERROR, "%s", debug_error_message()); }
//----------------------------------------------------------------------------- // just checks up on the current status, and if there's no card, makes sure // on_remove() is called static uint8_t sd_card_status(void) { uint8_t ret = KB_OK; blkstate_t state = blkGetDriverState(&SDCD1); if ((state != BLK_READING) && (state != BLK_WRITING)) { if (!sdc_lld_is_card_inserted(&SDCD1)) { on_remove(); logger_state = LS_WAIT_FOR_SD; } } return ret; }
static void breaks_remove_list_debug(GList *list) { GList *iter; for (iter = list; iter; iter = iter->next) { breakpoint *bp = (breakpoint*)iter->data; if (debug_remove_break(bp)) { on_remove((breakpoint*)iter->data); } } g_list_free(list); config_set_debug_changed(); }
void BookmarkGui::buildMenuFavorites() { QAction* new_folder = new QAction( tr( "Nuova Cartella" ) , 0 ); menu_ptr.insert( "new_folder" , new_folder ) ; connect( new_folder , SIGNAL(triggered()) , this , SLOT(on_newFolder()) ) ; this->menuFavorites.addAction( new_folder ) ; this->menuFavorites.addSeparator() ; QAction* cut = new QAction( tr( "Taglia" ) , 0 ); menu_ptr.insert( "cut" , cut ) ; connect( cut , SIGNAL(triggered()) , this , SLOT(on_cutItem()) ) ; this->menuFavorites.addAction( cut ) ; QAction* copy = new QAction( tr( "Copia" ) , 0 ); menu_ptr.insert( "copy" , copy ) ; copy->setDisabled( true ); this->menuFavorites.addAction( copy ) ; QAction* paste = new QAction( tr( "Incolla" ) , 0 ); menu_ptr.insert( "paste" , paste ) ; connect( paste , SIGNAL(triggered()) , this , SLOT(on_pasteItem()) ) ; this->menuFavorites.addAction( paste ) ; QAction* cancel_cut = new QAction( tr( "Annulla Taglia" ) , 0 ); menu_ptr.insert( "cancel_cut" , cancel_cut ) ; connect( cancel_cut , SIGNAL(triggered()) , this , SLOT(on_cancelCut()) ) ; this->menuFavorites.addAction( cancel_cut ) ; this->menuFavorites.addSeparator() ; QAction* remove = new QAction( tr( "Rimuovi" ) , 0 ); menu_ptr.insert( "remove" , remove ) ; connect( remove , SIGNAL(triggered()) , this , SLOT(on_remove()) ) ; this->menuFavorites.addAction( remove ) ; this->menuFavorites.addSeparator() ; QAction* rename_folder = new QAction( tr( "Cambia nome" ) , 0 ); menu_ptr.insert( "rename_folder" , rename_folder ) ; connect( rename_folder , SIGNAL(triggered()) , this , SLOT(on_remaneFolder()) ) ; this->menuFavorites.addAction( rename_folder ) ; ui->mainFavoritesMenu->setMenu( &this->menuFavorites ); }
void Session::purge_hosts(bool is_initial_connection) { // Hosts lock not held for reading (only called on session thread) HostMap::iterator it = hosts_.begin(); while (it != hosts_.end()) { if (it->second->mark() != current_host_mark_) { HostMap::iterator to_remove_it = it++; std::string address_str = to_remove_it->first.to_string(); if (is_initial_connection) { LOG_WARN("Unable to reach contact point %s", address_str.c_str()); { // Lock hosts ScopedMutex l(&hosts_mutex_); hosts_.erase(to_remove_it); } } else { LOG_WARN("Host %s removed", address_str.c_str()); on_remove(to_remove_it->second); } } else { ++it; } } current_host_mark_ = !current_host_mark_; }
void remove( const value_type& obj ) { on_remove( obj ); _indices.erase( _indices.iterator_to( obj ) ); }
void DCAwarePolicy::on_down(const SharedRefPtr<Host>& host) { on_remove(host); }