Exemple #1
0
// First function run by a new goroutine.  This replaces gogocall.
static void
kickoff(void)
{
	void (*fn)(void*);

	fn = (void (*)(void*))(g->entry);
	fn(g->param);
	runtime_goexit();
}
Exemple #2
0
void
runtime_Goexit(void)
{
	__go_rundefer();
	runtime_goexit();
}