zouboan

Results 12 comments of zouboan

Pretty cool @raiden00pl , Now the mechanism is completely clear, FOC main interrupted FOC pthread when pthread execute `ret = foc_dev_params_set(&dev);` and what resulted the execution of FOC over the...

@raiden00pl critical_section is a good idea, after all, the wakes up delay of high priority pthread caused by the critical_section in low priority task is short than the time interrupted...

Yes, both nx_vioctl and nxmq_receive just read tg_filelist, so ReadWriteLock is useful, but, does nuttx support read-write locks?

@xiaoxiang781216 Does Xiaomi has any plans to implement read-write-locks recently? If not, I will try to implement it

@xiaoxiang781216 I implemented a read-write lock, based on semaphore: [https://github.com/zouboan/incubator-nuttx/blob/fft/sched/semaphore/rwlock.c](url) and apply to fs_files.c [https://github.com/zouboan/incubator-nuttx/blob/fft/fs/inode/fs_files.c](url) It seems to be ok tested on hardware, but I don't know if the implementation...

I build on ubuntu 16.04 and gcc-arm-none-eabi-7-2017-q4-major the stm32f4discovery:usbnsh on nuttx-master and nuttx-10.3.0 is OK with minicom

> I don't think it's related to this commit,I run it without any problems > > Your error appears to be an error deleting the file, but the incdir file...

@xiaoxiang781216 sorry I did not continue with my work, I implemented a read-write lock, based on semaphore last year: https://github.com/zouboan/nuttx/commit/a9ff305f2d365462513c28f416134152f862c749 but I feel my implementation was something dumb, for example,...

@raiden00pl OK, Thanks for your advice, let me have a check if there's conflicts with the master branch and prepare a PR