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

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

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

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

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

示例1: archimedes_init

void archimedes_init(running_machine *machine){	memc_pagesize = 0;	vbl_timer = timer_alloc(machine, vidc_vblank, NULL);	timer_adjust_oneshot(vbl_timer, attotime_never, 0);	timer[0] = timer_alloc(machine, ioc_timer, NULL);	timer[1] = timer_alloc(machine, ioc_timer, NULL);	timer[2] = timer_alloc(machine, ioc_timer, NULL);	timer[3] = timer_alloc(machine, ioc_timer, NULL);	timer_adjust_oneshot(timer[0], attotime_never, 0);	timer_adjust_oneshot(timer[1], attotime_never, 0);	timer_adjust_oneshot(timer[2], attotime_never, 0);	timer_adjust_oneshot(timer[3], attotime_never, 0);	snd_timer = timer_alloc(machine, a310_audio_tick, NULL);	timer_adjust_oneshot(snd_timer, attotime_never, 0);}
开发者ID:DarrenBranford,项目名称:MAME4iOS,代码行数:19,


示例2: timer_alloc

void crt9007_t::device_start(){	// allocate timers	m_hsync_timer = timer_alloc(TIMER_HSYNC);	m_vsync_timer = timer_alloc(TIMER_VSYNC);	m_vlt_timer = timer_alloc(TIMER_VLT);	m_curs_timer = timer_alloc(TIMER_CURS);	m_drb_timer = timer_alloc(TIMER_DRB);	m_dma_timer = timer_alloc(TIMER_DMA);	// resolve callbacks	m_write_int.resolve_safe();	m_write_dmar.resolve_safe();	m_write_hs.resolve_safe();	m_write_vs.resolve_safe();	m_write_vlt.resolve_safe();	m_write_curs.resolve_safe();	m_write_drb.resolve_safe();	m_write_wben.resolve_safe();	m_write_cblank.resolve_safe();	m_write_slg.resolve_safe();	m_write_sld.resolve_safe();}
开发者ID:mbcoguno,项目名称:mame,代码行数:23,


示例3: machine

void via6522_device::device_start(){	m_in_a_handler.resolve();	m_in_b_handler.resolve();	m_out_a_handler.resolve_safe();	m_out_b_handler.resolve_safe();	m_cb1_handler.resolve_safe();	m_ca2_handler.resolve_safe();	m_cb2_handler.resolve_safe();	m_irq_handler.resolve_safe();	m_t1ll = 0xf3; /* via at 0x9110 in vic20 show these values */	m_t1lh = 0xb5; /* ports are not written by kernel! */	m_t2ll = 0xff; /* taken from vice */	m_t2lh = 0xff;	m_sr = 0;	m_time2 = m_time1 = machine().time();	m_t1 = timer_alloc(TIMER_T1);	m_t2 = timer_alloc(TIMER_T2);	m_ca2_timer = timer_alloc(TIMER_CA2);	m_shift_timer = timer_alloc(TIMER_SHIFT);	/* Default clock is from CPU1 */	if (clock() == 0)	{		set_unscaled_clock(machine().firstcpu->clock());	}	/* save state register */	save_item(NAME(m_in_a));	save_item(NAME(m_in_ca1));	save_item(NAME(m_in_ca2));	save_item(NAME(m_out_a));	save_item(NAME(m_out_ca2));	save_item(NAME(m_ddr_a));	save_item(NAME(m_latch_a));	save_item(NAME(m_in_b));	save_item(NAME(m_in_cb1));	save_item(NAME(m_in_cb2));	save_item(NAME(m_out_b));	save_item(NAME(m_out_cb1));	save_item(NAME(m_out_cb2));	save_item(NAME(m_ddr_b));	save_item(NAME(m_latch_b));	save_item(NAME(m_t1cl));	save_item(NAME(m_t1ch));	save_item(NAME(m_t1ll));	save_item(NAME(m_t1lh));	save_item(NAME(m_t2cl));	save_item(NAME(m_t2ch));	save_item(NAME(m_t2ll));	save_item(NAME(m_t2lh));	save_item(NAME(m_sr));	save_item(NAME(m_pcr));	save_item(NAME(m_acr));	save_item(NAME(m_ier));	save_item(NAME(m_ifr));	save_item(NAME(m_time1));	save_item(NAME(m_t1_active));	save_item(NAME(m_t1_pb7));	save_item(NAME(m_time2));	save_item(NAME(m_t2_active));	save_item(NAME(m_shift_counter));}
开发者ID:crazii,项目名称:mameui,代码行数:65,


示例4: HariMain

//.........这里部分代码省略.........	init_mouse_cursor8(buf_mouse, 99);	mx = (binfo->scrnx - 16) / 2; /* 
C++ timer_create函数代码示例
C++ timer_adjust_oneshot函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。