- 博客(2)
- 资源 (5)
- 收藏
- 关注
原创 控制递归的次数
经常会用到递归,虽然能解决问题,但其缺点很明显,有可能无法跳出造成死循环,能控制递归次数就可以避免这种情况。用lua尝试了几种方法,第一种,在方法内定义一个变量计数:function recursionTest() local times = 0 if times < 10 then times = times + 1 recursionTest() end if times == 0 then print("o
2020-09-09 00:26:16 3480
原创 多线程中的后台线程
最近在开发过程中遇到一个后台线程的坑,分享出来,大家也可以一起讨论。多线程中通过给线程设置Thread.IsBackground属性可以将已有线程设置为后台线程,根据MSDN中的官方解释:Background threads are identical to foreground threads, except that background threads do not prevent a pr...
2018-07-09 00:44:31 949
Programming.in.Lua 4th Edition(已添加书签)
2018-03-17
Software.Engineering,.9th edition
2017-09-22
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人