您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ start_timer函数代码示例

51自学网 2021-06-03 08:22:15
  C++
这篇教程C++ start_timer函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中start_timer函数的典型用法代码示例。如果您正苦于以下问题:C++ start_timer函数的具体用法?C++ start_timer怎么用?C++ start_timer使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了start_timer函数的29个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: dns_send_packet

/** * Send next packet in DNS request * * @v dns		DNS request */static int dns_send_packet ( struct dns_request *dns ) {	static unsigned int qid = 0;	size_t qlen;	/* Increment query ID */	dns->query.dns.id = htons ( ++qid );	DBGC ( dns, "DNS %p sending query ID %d/n", dns, qid );	/* Start retransmission timer */	start_timer ( &dns->timer );	/* Send the data */	qlen = ( ( ( void * ) dns->qinfo ) - ( ( void * ) &dns->query )		 + sizeof ( dns->qinfo ) );	return xfer_deliver_raw ( &dns->socket, &dns->query, qlen );}
开发者ID:viikasgarg,项目名称:syslinux,代码行数:22,


示例2: routesplinesinit

void routesplinesinit (void){    if (!(bs = (box *) malloc (BINC * sizeof (box)))) {        fprintf (stderr, "cannot allocate bs/n");        abort ();    }    maxbn = BINC;    if (!(ps = (point *) malloc (PINC * sizeof (point)))) {        fprintf (stderr, "cannot allocate ps/n");        abort ();    }    maxpn = PINC;    minbbox.LL.x = minbbox.LL.y = INT_MAX;    minbbox.UR.x = minbbox.UR.y = INT_MIN;    Show_boxes = FALSE;	if (Verbose) start_timer();}
开发者ID:crioux,项目名称:SpeedDemon-Profiler,代码行数:17,


示例3: stop_timer

void xlui::line_edit::remove_selected_text() {	_selection = false;	xlui::string text = _text.mid(0, m_iSelectionStart);	if(!m_iSelectionStart) {		m_iActualCursor = 0;	}	if(_text.get_character_count() > m_iSelectionStart + m_iSelectionCount) {		_text = text + _text.mid(m_iSelectionStart + m_iSelectionCount);	} else {		_text = text;		m_iActualCursor = _text.get_character_count();	}	m_iSelectionStart = m_iSelectionCount = 0;	stop_timer(m_iTimerId);	m_iTimerId = start_timer(500);	update();}
开发者ID:Ayandorias,项目名称:xlui,代码行数:17,


示例4: lifting_hopper_fn

void lifting_hopper_fn(){    if (just_entered_state){        // pulse_backward();        pulse_forward();        Serial.println("lifting_hopper_fn");        debug_blue->led_on();        start_timer(SERVO_TIMER, 1500);        extend_dumper();        times_hopper_lifted++;    }    check_pulse();    // if (respond_to_key(NULL_STATE)) return;     // if (respond_to_timer_and_dumper_finished(SERVO_TIMER, LOWERING_HOPPER)) return;    // if (respond_to_dumper_finished(LOWERING_HOPPER)) return;     if (respond_to_timer(SERVO_TIMER, LOWERING_HOPPER)) return;     // if (respond_to_timer(SERVO_TIMER, LIFTING_HOPPER)) return; }
开发者ID:Charlie-Y,项目名称:ME210-BotCode,代码行数:17,


示例5: twine_exit

void twine_exit() {    // get the current thread, set current to the next one    twine_thread *old;    old = current;    current = current->next;    // free our allocated space - frees the stack too?    free(old);    if (current == NULL) exit(0);    start_timer();       // set the context to the next thread    // no need to get or swap contexts because we're exiting    // this thread    int ret = setcontext(&current->ctx);    if (ret == -1) die("twine_exit: setcontext()");}
开发者ID:breily,项目名称:twine,代码行数:17,


示例6: k_get_process_priority

int k_get_process_priority(int pid){	int time;	PCB *p = get_process(pid, gp_pcbs);	#ifdef TIMING	start_timer();	#endif	#ifdef DEBUG_0 	printf("getting priority for process %d/n", p->m_pid);	#endif /* ! DEBUG_0 */	if (p == NULL) {		return -1;	}	#ifdef TIMING	time = end_timer();	#endif	return p->m_priority;}
开发者ID:kimyousee,项目名称:SE350_RTX,代码行数:17,


示例7: heartbeat_timer

void heartbeat_timer(void){	gd_addr			*addr_ptr;	gd_region		*r_top, *r_save, *r_local;	sgmnt_addrs		*csa;	jnl_private_control	*jpc;	int			rc;	/* It will take heartbeat_counter about 1014 years to overflow. */	heartbeat_counter++;	/* Check every 1 minute if we have an older generation journal file open. If so, close it.	 * The only exceptions are	 *	a) The source server can have older generations open and they should not be closed.	 *	b) If we are in the process of switching to a new journal file while we get interrupted	 *		by the heartbeat timer, we should not close the older generation journal file	 *		as it will anyways be closed by the mainline code. But identifying that we are in	 *		the midst of a journal file switch is tricky so we check if the process is in	 *		crit for this region and if so we skip the close this time and wait for the next heartbeat.	 */	if ((INTRPT_OK_TO_INTERRUPT == intrpt_ok_state) && !is_src_server		&& (0 == heartbeat_counter % NUM_HEARTBEATS_FOR_OLDERJNL_CHECK))	{		for (addr_ptr = get_next_gdr(NULL); addr_ptr; addr_ptr = get_next_gdr(addr_ptr))		{			for (r_local = addr_ptr->regions, r_top = r_local + addr_ptr->n_regions; r_local < r_top; r_local++)			{				if (!r_local->open || r_local->was_open)					continue;				if ((dba_bg != r_local->dyn.addr->acc_meth) && (dba_mm != r_local->dyn.addr->acc_meth))					continue;				csa = &FILE_INFO(r_local)->s_addrs;				if (csa->now_crit)					continue;				jpc = csa->jnl;				if ((NULL != jpc) && (NOJNL != jpc->channel) && JNL_FILE_SWITCHED(jpc))				{	/* The journal file we have as open is not the latest generation journal file. Close it */					/* Assert that we never have an active write on a previous generation journal file. */					assert(process_id != jpc->jnl_buff->io_in_prog_latch.u.parts.latch_pid);					JNL_FD_CLOSE(jpc->channel, rc);	/* sets jpc->channel to NOJNL */					jpc->pini_addr = 0;				}			}		}	}	start_timer((TID)heartbeat_timer, HEARTBEAT_INTERVAL, heartbeat_timer, 0, NULL);}
开发者ID:CeperaCPP,项目名称:fis-gtm,代码行数:46,


示例8: correcting_rotation_2_fn

// figure out how to make these into substates or something...void correcting_rotation_2_fn(){    if (just_entered_state){        start_state_init_timer(400);        debug_green->led_on();    }    if (state_init_timer_finished()){        rotate_left(8);        state_init_finished = true;        start_timer(MAIN_STATE_TIMER, 60);        debug_green->led_off();        debug_red->led_off();    }    if (state_init_finished){        // if (respond_to_timer(MAIN_STATE_TIMER, MOVING_FW_TO_ALIGN_WITH_SERVER)) return;        if (respond_to_timer(MAIN_STATE_TIMER, MOVE_TOWARDS_SERVER)) return;    }}
开发者ID:Charlie-Y,项目名称:ME210-BotCode,代码行数:18,


示例9: retracting_button_presser_fn

void retracting_button_presser_fn(){    if (just_entered_state){        Serial.println("retracting_button_presser_fn");        //move servo back a bit        debug_blue->led_on();        retract_button_presser();        start_timer(SERVO_TIMER, BUTTON_PRESSER_DELAY);    }    // if (respond_to_enough_presses(3,STRAIGHT_BACK_TO_DEPO)) return;    unsigned char coins_to_get = coins_for_exchanges[coin_collection_round];    if (respond_to_enough_presses(coins_to_get,WAIT_FOR_LAST_COIN)) return;    if (respond_to_key(RETRACTING_BUTTON_PRESSER)) return;    if (respond_to_timer(SERVO_TIMER, EXTENDING_BUTTON_PRESSER)) return;    // if (respond_to_timer(SERVO_TIMER, NULL_STATE)) return;    // if (respond_to_timer(SERVO_TIMER, RETRACTING_BUTTON_PRESSER)) return;    // if (respond_to_button_presser_finished(EXTENDING_BUTTON_PRESSER)) return;}
开发者ID:Charlie-Y,项目名称:ME210-BotCode,代码行数:17,


示例10: send_sock

/** * ソケット送信 * * @param[in] sock ソケット * @return ステ
C++ startacq函数代码示例
C++ start_time函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。