thank you very much for this link!
Nevertheless, I don't see how you're doing the pinchang-e or timer-interrupt thing?
gpioDelay(20000); /* check pos 50 times per second */
so for 10,000 times p.sec. it should be
gpioDelay(100); /* check pos each 100µs safely ?? */
To run this in an extra pthread task surely would not perform quickly and safely enough, as it's again jittering in the pthread user space level, interfered by different program tasks and daemons running parallel...
OTOH, wiringPi mimics (or fakes) a pinchange interrupt, apart from delays or tasks/threads in the programming source code (using an own higher-priority task in the background):
http://theatticlight.net/posts/Reading- ... pberry-Pi/
https://github.com/astine/rotaryencoder ... yencoder.c
- this is what I actually had expected for the pigpio code, tooo...?