ã¹ã¬ãããã¼ã«ã«ã¹ãã¬ã¼ã¸(Thread-Local Storage)ã«é¢ããã¡ã¢ã ã¹ã¬ããåºæã¹ãã¬ã¼ã¸(Thread-Specific Storage)ã ã¾ãã¯ã¹ã¬ããåºæãã¼ã¿(Thread-Specific Data)ã¨ãå¼ã°ããã ééãããã£ããããããã ä½ãã â ç°¡åã«è¨ãã¨ãã¹ã¬ãããã¨ã«ç°ãªãã°ãã¼ãã«å¤æ°(staticå¤æ°ã§ãè¯ã)ã é常ã®ã°ãã¼ãã«å¤æ°ã¯ãããã»ã¹ãã¨ã«å¥ã ã§ãã¹ã¬ããéã§ã¯å ±æãããããã©ããTLSã¯ã¹ã¬ãããã¨ã«å¥ã ã®è¨æ¶é åãæã¤ã VC++ã§ã¯ä»¥ä¸ã®ããã«å®£è¨ããã __declspec(thread) int x; __declspec(thread) extern int y; __declspec(thread) static int z; gccã§ã¯ä»¥ä¸ã®ããã«å®£è¨ããã __thread int x; extern __th
{{#tags}}- {{label}}
{{/tags}}