misc.c

来自「一个Windows下的Linux专用虚拟机」· C语言 代码 · 共 30 行

C
30
字号
/* * This source code is a part of coLinux source package. * * Dan Aloni <da-x@colinux.org>, 2004 (c) * * The code is licensed under the GPL. See the COPYING file at * the root directory. * */#include <windows.h>#include "misc.h"/* * Currently there's a bug on SMP that prevents coLinux from * running stable unless it is pinned to the first processor. */void co_winnt_affinity_workaround(void){	char *env = getenv("COLINUX_NO_SMP_WORKAROUND");	if (env != NULL) {		if (strcmp(env, "Y") == 0)			return;	}	SetProcessAffinityMask(GetCurrentProcess(), 1);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?