Add C API for thread yielding callback.