Is it possible to advice the kernel to perform an immediate context switch to a different thread, bypassing the scheduler logic?
But, if you really need to force a scheduler cycle, you can use the sched_yield() system call
not effective to my problem: detect “widget_is_drawable”.