PHPã«ãããæä»å¶å¾¡ã®ãã¹ããã©ã¯ãã£ã¹ãåãããªãã£ãã®ã§ãå®è©ã®ãããããªãPerlã¡ã¢ãã®ãæä»å¶å¾¡(ãã¡ã¤ã«ããã¯)ããããã移æ¤ãã¦ã¿ã¾ããã誤ããããããããã¾ããã®ã§ããæ°ã¥ãã®æ¹ã¯ãææããã ããã¨å©ããã¾ãã <?php function my_flock($options = array()) { $lfh = array_merge(array('dir' => './lockdir/', 'basename' => 'lockfile', 'timeout' => 60, 'trytime' => 10), $options); $lfh['path'] = $lfh['dir'] . $lfh['basename']; for ($i = 0; $i < $lfh['trytime']; $i++, sleep(1)) { if (rename($lfh['pa
{{#tags}}- {{label}}
{{/tags}}