è¤æ°ã®ã¹ã¬ãããã1ã¤ã®å¤æ°ã«ã¢ã¯ã»ã¹ããéãã·ã¹ãã å´ã®ã¹ã¬ããã¹ã±ã¸ã¥ã¼ãªã³ã°æ¬¡ç¬¬ã§ãäºæãã¬æ¸ãæããèµ·ãã£ã¦ãã¾ãå ´åãããã¾ãããã®çºããã1ã¤ã®ã¹ã¬ãããå¤æ°ã«ã¢ã¯ã»ã¹ãã¦ããéã¯ä»ã®ã¹ã¬ããããããã¯ããæä»å¶å¾¡ãã¹ã¬ããã®åæãè¡ãå¿ è¦ãããã¾ããC++ã§Javaã®synchronizedã¡ã½ãã/ãããã¯ã¨åããããªè¨æ³ã§ã¯ãªãã£ã«ã«ã»ã¯ã·ã§ã³ãå®è£ ããæ¹æ³ã®1ã¤ã«boost::threadã©ã¤ãã©ãªã®mutexã¨conditionã¯ã©ã¹ãããã¾ãã mutex ã¯ã©ã¹ã®ä½¿ãæ¹ ã¹ã¬ããã®æä»å¶å¾¡ãå®ç¾ã§ãã¾ããå ·ä½çãªä½¿ãæ¹ã¯ãmutexã¤ã³ã¹ã¿ã³ã¹ãmutex::scoped_lockã¯ã©ã¹ã®ã³ã³ã¹ãã©ã¯ã¿ã®å¼æ°ã«æå®ãããã®ã¤ã³ã¹ã¿ã³ã¹ãåå¾ãããã¨ã§ããã¯ãããããã¾ããããã¹ã¬ãããä¸ã®å¦çã以ã£ã¦mutexã¤ã³ã¹ã¿ã³ã¹ã«ããã¯ããããå ´åããã®ä»ã®ã¹ã¬ããã¯å
{{#tags}}- {{label}}
{{/tags}}