• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ FLUSH函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: FLUSH

void
syscall·NewCallback(Eface fn, uintptr code)
{
#line 39 "d:\Go1.1\src\pkg\runtime\syscall_windows.goc"

	code = (uintptr)runtime·compilecallback(fn, true);
	FLUSH(&code);
}
开发者ID:ahnan4arch,项目名称:go_src_comment,代码行数:8,代码来源:zsyscall_windows_windows_386.c


示例2: FLUSH

void
·_Cfunc_CString(String s, int8 *p)
{
	p = runtime·cmalloc(s.len+1);
	runtime·memmove((byte*)p, s.str, s.len);
	p[s.len] = 0;
	FLUSH(&p);
}
开发者ID:qingxialanshan,项目名称:InstallHelper,代码行数:8,代码来源:_cgo_defun.c


示例3: FLUSH

void
runtime·convI2E(Iface i, Eface ret)
{
	ret.type = 0;
	ret.data = 0;
	FLUSH(&ret);
#line 310 "/home/14/ren/source/golang/go/src/pkg/runtime/iface.goc"

	Itab *tab;

	ret.data = i.data;
	if((tab = i.tab) == nil)
		ret.type = nil;
	else
		ret.type = tab->type;
	FLUSH(&ret);
}
开发者ID:rosrad,项目名称:go-rep,代码行数:17,代码来源:ziface_linux_amd64.c


示例4: FLUSH

void
syscall·NewCallbackCDecl(Eface fn, uintptr code)
{
#line 43 "syscall_windows.goc"

	code = (uintptr)runtime·compilecallback(fn, false);
	FLUSH(&code);
}
开发者ID:krasin,项目名称:go-deflate,代码行数:8,代码来源:zsyscall_windows_arm.c


示例5: FLUSH

void
runtime·convI2E(Iface i, Eface ret)
{
	ret.type = 0;
	ret.data = 0;
	FLUSH(&ret);
#line 325 "/tmp/makerelease197226928/go/src/pkg/runtime/iface.goc"

	Itab *tab;

	ret.data = i.data;
	if((tab = i.tab) == nil)
		ret.type = nil;
	else
		ret.type = tab->type;
	FLUSH(&ret);
}
开发者ID:luoguoling,项目名称:go,代码行数:17,代码来源:ziface_linux_amd64.c


示例6: FLUSH

void
net·runtime_pollReset(PollDesc* pd, intgo mode, intgo err)
{
	err = 0;
	FLUSH(&err);
#line 129 "/home/14/ren/source/golang/go/src/pkg/runtime/netpoll.goc"

	err = checkerr(pd, mode);
	if(err)
		goto ret;
	if(mode == 'r')
		pd->rg = nil;
	else if(mode == 'w')
		pd->wg = nil;
ret:
	FLUSH(&err);
}
开发者ID:rosrad,项目名称:go-rep,代码行数:17,代码来源:znetpoll_windows_amd64.c


示例7: FLUSH

void
runtime·copy(Slice to, Slice fm, uintptr width, intgo ret)
{
	ret = 0;
	FLUSH(&ret);
#line 139 "/home/14/ren/source/golang/go/src/pkg/runtime/slice.goc"

	void *pc;

	if(fm.len == 0 || to.len == 0 || width == 0) {
		ret = 0;
		goto out;
	}

	ret = fm.len;
	if(to.len < ret)
		ret = to.len;

	if(raceenabled) {
		pc = runtime·getcallerpc(&to);
		runtime·racewriterangepc(to.array, ret*width, pc, runtime·copy);
		runtime·racereadrangepc(fm.array, ret*width, pc, runtime·copy);
	}

	if(ret == 1 && width == 1) {	// common case worth about 2x to do here
		*to.array = *fm.array;	// known to be a byte pointer
	} else {
		runtime·memmove(to.array, fm.array, ret*width);
	}

out:

	if(debug) {
		runtime·prints("main·copy: to=");
		runtime·printslice(to);
		runtime·prints("; fm=");
		runtime·printslice(fm);
		runtime·prints("; width=");
		runtime·printint(width);
		runtime·prints("; ret=");
		runtime·printint(ret);
		runtime·prints("\n");
	}
	FLUSH(&ret);
}
开发者ID:rosrad,项目名称:go-rep,代码行数:45,代码来源:zslice_windows_386.c


示例8: FLUSH

void
runtime·copy(Slice to, Slice fm, uintptr width, intgo ret)
{
	ret = 0;
	FLUSH(&ret);
#line 135 "C:\Users\ADMINI~1\AppData\Local\Temp\2\makerelease686069423\go\src\pkg\runtime\slice.goc"

	void *pc;

	if(fm.len == 0 || to.len == 0 || width == 0) {
		ret = 0;
		goto out;
	}

	ret = fm.len;
	if(to.len < ret)
		ret = to.len;

	if(raceenabled) {
		pc = runtime·getcallerpc(&to);
		runtime·racewriterangepc(to.array, ret*width, pc, runtime·copy);
		runtime·racereadrangepc(fm.array, ret*width, pc, runtime·copy);
	}

	if(ret == 1 && width == 1) {	// common case worth about 2x to do here
		*to.array = *fm.array;	// known to be a byte pointer
	} else {
		runtime·memmove(to.array, fm.array, ret*width);
	}

out:

	if(debug) {
		runtime·prints("main·copy: to=");
		runtime·printslice(to);
		runtime·prints("; fm=");
		runtime·printslice(fm);
		runtime·prints("; width=");
		runtime·printint(width);
		runtime·prints("; ret=");
		runtime·printint(ret);
		runtime·prints("\n");
	}
	FLUSH(&ret);
}
开发者ID:ader1990,项目名称:go,代码行数:45,代码来源:zslice_windows_amd64.c


示例9: FLUSH

void
runtime·getgoroot(String out)
{
	byte *p;

	p = runtime·getenv("GOROOT");
	out = runtime·gostringnocopy(p);
	FLUSH(&out);
}
开发者ID:hfeeki,项目名称:golang,代码行数:9,代码来源:runtime.c


示例10: USED

// func ifaceI2E2(typ *byte, iface any) (ret any, ok bool)
void
runtime·assertI2E2(InterfaceType* inter, Iface i, Eface ret, bool ok)
{
	Itab *tab;

	USED(inter);
	tab = i.tab;
	if(tab == nil) {
		ret.type = nil;
		ok = 0;
	} else {
		ret.type = tab->type;
		ok = 1;
	}
	ret.data = i.data;
	FLUSH(&ret);
	FLUSH(&ok);
}
开发者ID:29decibel,项目名称:golang,代码行数:19,代码来源:iface.c


示例11: itab

void
runtime·typ2Itab(Type* t, InterfaceType* inter, Itab** cache, Itab* tab)
{
#line 172 "/home/pi/go_build/hg/go/src/pkg/runtime/iface.goc"

	tab = itab(inter, t, 0);
	runtime·atomicstorep(cache, tab);
	FLUSH(&tab);
}
开发者ID:eggfly,项目名称:go-linux-arm,代码行数:9,代码来源:ziface_linux_arm.c


示例12: FLUSH

// For reflect
//	func chancap(c chan) (cap int32)
void
reflect·chancap(Hchan *c, int32 cap)
{
	if(c == nil)
		cap = 0;
	else
		cap = c->dataqsiz;
	FLUSH(&cap);
}
开发者ID:Alfalfamale,项目名称:robvdhout-go,代码行数:11,代码来源:chan.c


示例13: copyin

void
runtime·convT2E(Type* t, byte* elem, Eface ret)
{
#line 191 "/home/pi/go_build/hg/go/src/pkg/runtime/iface.goc"

	ret.type = t;
	copyin(t, elem, &ret.data);
	FLUSH(&ret);
}
开发者ID:eggfly,项目名称:go-linux-arm,代码行数:9,代码来源:ziface_linux_arm.c


示例14: FLUSH

void
runtime·eqstring(String s1, String s2, bool v)
{
	v = 0;
	FLUSH(&v);
#line 209 "/home/14/ren/source/golang/go/src/pkg/runtime/string.goc"

	if(s1.len != s2.len) {
		v = false;
		return;
	}
	if(s1.str == s2.str) {
		v = true;
		return;
	}
	v = runtime·memeq(s1.str, s2.str, s1.len);
	FLUSH(&v);
}
开发者ID:rosrad,项目名称:go-rep,代码行数:18,代码来源:zstring_linux_arm.c


示例15: FLUSH

// func ifaceI2I2(sigi *byte, iface any) (ret any, ok bool)
void
runtime·assertI2I2(InterfaceType *inter, Iface i, Iface ret, bool ok)
{
	Itab *tab;

	tab = i.tab;
	if(tab != nil && (tab->inter == inter || (tab = itab(inter, tab->type, 1)) != nil)) {
		ret.data = i.data;
		ret.tab = tab;
		ok = 1;
	} else {
		ret.data = 0;
		ret.tab = 0;
		ok = 0;
	}
	FLUSH(&ret);
	FLUSH(&ok);
}
开发者ID:29decibel,项目名称:golang,代码行数:19,代码来源:iface.c


示例16: gostringsize

void
runtime·slicebytetostring(Slice b, String s)
{
#line 3587 "C:\Go\src\pkg\runtime\string.goc"

	s = gostringsize(b.len);
	runtime·memmove(s.str, b.array, s.len);
	FLUSH(&s);
}
开发者ID:VarocalCross,项目名称:Varocal,代码行数:9,代码来源:zstring_386.c


示例17: AppVerbose

/* Writes verbose message to stderr if desired and then returns.
 */
void AppVerbose(
	const char *fmt,  	/* Format control */
	... )             	/* Optional arguments */
{
    	va_list marker;		/* parameter list of variable length */


    	if(appOutput == APP_NOOUT)
    		return;		/* no progress message desired */

    	/* Let marker point to 1st unnamed argument */
    	va_start(marker, VA_START_ARG(fmt));
    	(void)vfprintf(stderr, fmt, marker);
	va_end(marker);		/* clean up */

	FLUSH(stderr);
	FLUSH(stdout);
	return;
}
开发者ID:pcraster,项目名称:pcraster,代码行数:21,代码来源:app.c


示例18: if

void
runtime·assertE2I2(InterfaceType* inter, Eface e, Iface ret, bool ok)
{
#line 422 "/home/pi/go_build/hg/go/src/pkg/runtime/iface.goc"

	if(e.type == nil) {
		ok = 0;
		ret.data = nil;
		ret.tab = nil;
	} else if((ret.tab = itab(inter, e.type, 1)) == nil) {
		ok = 0;
		ret.data = nil;
	} else {
		ok = 1;
		ret.data = e.data;
	}
	FLUSH(&ret);
	FLUSH(&ok);
}
开发者ID:eggfly,项目名称:go-linux-arm,代码行数:19,代码来源:ziface_linux_arm.c


示例19: client_write_move

void client_write_move(remote_process_client *client, const struct ct_move *move)
{
    WRITE_BYTE(MSG_MOVE_MESSAGE);
    WRITE_BYTE(1);
    WRITE_BYTE((signed char)move->action);
    WRITE_BYTE((signed char)move->direction);
    WRITE_INT32(move->position.x);
    WRITE_INT32(move->position.y);
    FLUSH();
}
开发者ID:Megabyteceer,项目名称:c-cgdk,代码行数:10,代码来源:remote_process_client.c


示例20: FLUSH

void
syscall·loadlibrary(uint16* filename, uintptr handle, uintptr err)
{
#line 3700 "C:\Go\src\pkg\runtime\syscall_windows.goc"

	WinCall c;

	c.fn = runtime·LoadLibrary;
	c.n = 1;
	c.args = &filename;
	runtime·cgocall(runtime·asmstdcall, &c);
	handle = c.r1;
	if(handle == 0)
		err = c.err;
	else
		err = 0;
	FLUSH(&handle);
	FLUSH(&err);
}
开发者ID:VarocalCross,项目名称:Varocal,代码行数:19,代码来源:zsyscall_windows_amd64.c



注:本文中的FLUSH函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ FLUSH_BATCH函数代码示例发布时间:2022-05-30
下一篇:
C++ FLUID_LOG函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap