当前位置: 首页>>代码示例>>C++>>正文


C++ FLUSH函数代码示例

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


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


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