diff options
author | José Bollo <jose.bollo@iot.bzh> | 2017-08-31 19:21:03 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2017-08-31 19:21:03 +0200 |
commit | 46ac3bf9554a75e137d5209d27160c1137d42302 (patch) | |
tree | fcf54e895a67c93274137cde3f7a1ab529af64c3 /src/afb-api-so-v1.c | |
parent | 2e83db0375d44c0b05742e787f6abd4127e2aac8 (diff) |
Make noconcurrency more efficient
The previous handling of noconcurrency suffered of
inefficiency, was complicated and dedicated to
api-so-v2.
Change-Id: I32aea9187663ac533819496e9dc9b944db0d89ec
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-api-so-v1.c')
-rw-r--r-- | src/afb-api-so-v1.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/afb-api-so-v1.c b/src/afb-api-so-v1.c index 3eea4645..2a5dc08a 100644 --- a/src/afb-api-so-v1.c +++ b/src/afb-api-so-v1.c @@ -304,6 +304,7 @@ int afb_api_so_v1_add(const char *path, void *handle, struct afb_apiset *apiset) afb_ditf_rename(&desc->ditf, desc->binding->v1.prefix); afb_api.closure = desc; afb_api.itf = &so_v1_api_itf; + afb_api.noconcurrency = 0; if (afb_apiset_add(apiset, desc->binding->v1.prefix, afb_api) < 0) { ERROR("binding [%s] can't be registered...", path); goto error2; |