|
03/03/2009 3:53 PM
post23403
|
> very simple to create and use microemacs edition with QNX (em-4.0.
> 18.tar.gz) in CLI mode.
> SNS
Yes, it compiles and runs with very little trouble. However, "as is" it does a spinwait for characters from the keyboard
. This eats up all the CPU, which causes Photon sessions to hang. The solution is to put a nanosleep() in the spinloop,
in the file termio.c, in the routine ttgetc(). I used a value of 1 millisecond.
There might be a way to tweak the configuration settings to avoid the spinloop altogether, but this turned out to be
easiest for me.
|
|
|
|
|