本文整理汇总了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);
}
示例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);
}
示例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);
}
示例4: FLUSH
void
syscall·NewCallbackCDecl(Eface fn, uintptr code)
{
#line 43 "syscall_windows.goc"
code = (uintptr)runtime·compilecallback(fn, false);
FLUSH(&code);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例9: FLUSH
void
runtime·getgoroot(String out)
{
byte *p;
p = runtime·getenv("GOROOT");
out = runtime·gostringnocopy(p);
FLUSH(&out);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}