摘要:
enum EShotMode{ eShotMode_NormalShot, /*!< Normal Shot */ eShotMode_ContinuousShot, /*!< Continuous Shot Ncc*/ eShotMode_ContinuousShotCc, /*!< Contin 阅读全文
摘要:
Thread中,join()方法的作用是调用线程等待该线程完成后,才能继续用下运行。 在上面的例子中,main线程要等到t1线程运行结束后,才会输出“main end”。如果不加t1.join(),main线程和t1线程是并行的。而加上t1.join(),程序就变成是顺序执行了。 我们在用到join 阅读全文