Ren Mingrui
Ren Mingrui
If it's slow with downloading **_platformio packages_** _(like stm32HAL library, gcctools, which platformio will download automatically after you create a new project_). you could download it manually here:http://dl.bintray.com/platformio/ . And...
PlatformIO-IDE for vscode installation includes following steps: 1.check and download python3.7(if not installed) from _python official site_ 2.pip install platfromIO core from _pip registry_ 3.run CLI: platformIO home 4.install contrib-pysite...
> 这个放在下个版本,对api所处环境的检查确实很重要 @mysterywolf 好的,感谢回复。 到时候如需修改PR欢迎留言。
> assert 是在开发阶段,或者说,是对入门者的一种快速暴力提示;对于一个熟练使用者来讲还依靠 assert 来定位用法错误,会对产品引入隐患的。 一个产品,绝对不能带着 assert 运行。虽然 ipc 中添加的这些 assert 经过实验阶段验证没有问题了,也不能让他们留在程序里。 > 感谢回复。 我赞同您的这个观点,_assert_ 过于暴力,不应该在这里使用。或许可以参考 linux kernel,强制打印一段提示: Linux Kernel /mutex.c: 280行 https://github.com/torvalds/linux/blob/master/kernel/locking/mutex.c > 各类函数的用法,重点在于告诉用户怎么用,而不是让使用者毫无头绪的去乱试,每次遇到 assert 才恍然大悟,哦,这个函数不能这么用。这种想法是错的。 而这个观点我认为有待商榷。 不应该说 _README_...
> > 顺便一提,我遇到的问题是,在 rtthread_startup() 函数中(线程调度初始化完成之前),调用 rt_mutex_take() 和 rt_mutex_release() 函数后,struct rt_mutex.value 的值会意外的变成2,导致后续可以有多个线程同时持有互斥锁。 > > `rt_thread_startup` 函数? 它里面需要用到锁了? 没有。 是我自己在 `rt_thread_startup` 增加了初始化步骤,在初始化步骤中误调用了锁。 但是由于没有任何错误相关提示,导致排查花了比较久的时间。
@nicolo-ribaudo Thanks for your reply, That's a proper solution. But I still don't understand why if I include _node_modules_, there will be problems with my code. Does _babel-loader_ or _plugin-transform-runtime_...