aboutsummaryrefslogtreecommitdiffstats
path: root/src/afb-api-so.c
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-03-22 16:49:53 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2017-03-22 16:49:53 +0100
commitfeccdb76f572a5fad947475c21b5b9aff696b04b (patch)
tree8e70e3eefef68febe02b5447105fdc6d857426b7 /src/afb-api-so.c
parentf5ce0df45f5ce9f0b57b250dfd44513d085f1e54 (diff)
Refactor of threading and signal monitor
The goal is to allow use of this facilities for things that are not 'afb_req'. Change-Id: I0d99c227934ed45136477bf6235bd1541d5f05cf Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-api-so.c')
-rw-r--r--src/afb-api-so.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/afb-api-so.c b/src/afb-api-so.c
index 74f94f36..222fbbbd 100644
--- a/src/afb-api-so.c
+++ b/src/afb-api-so.c
@@ -38,7 +38,6 @@
#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);
}
}