X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-api-so.c;h=222fbbbdcae96e536ec15f9868020860fffda97d;hb=feccdb76f572a5fad947475c21b5b9aff696b04b;hp=554df39acc45990c06e3d1a55f8b8f1fce178d1f;hpb=91f3e6ecdada77d57c8d92a955776fd8fe6d402e;p=src%2Fapp-framework-binder.git diff --git a/src/afb-api-so.c b/src/afb-api-so.c index 554df39a..222fbbbd 100644 --- a/src/afb-api-so.c +++ b/src/afb-api-so.c @@ -33,12 +33,11 @@ #include #include -#include "session.h" +#include "afb-session.h" #include "afb-common.h" #include "afb-context.h" #include "afb-apis.h" #include "afb-api-so.h" -#include "afb-sig-handler.h" #include "afb-thread.h" #include "afb-evt.h" #include "afb-svc.h" @@ -194,12 +193,7 @@ static void call_cb(void *closure, struct afb_req req, struct afb_context *conte if (!verb->name) afb_req_fail_f(req, "unknown-verb", "verb %.*s unknown within api %s", (int)lenverb, strverb, desc->binding->v1.prefix); else if (call_check(req, context, verb)) { - if (0) - /* not threaded */ - afb_sig_req_timeout(req, verb->callback, api_timeout); - else - /* threaded */ - afb_thread_call(req, verb->callback, api_timeout, desc); + afb_thread_req_call(req, verb->callback, api_timeout, desc); } }