api:cpp:support runInThread="none" and hasCallback="mandatory"