aboutsummaryrefslogtreecommitdiffstats
path: root/src/afb-api-so-v2.c
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-09-21 07:57:24 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-10-09 14:08:32 +0200
commitf2e72e1858d0be1a9cf3c0c4263f0bd81570d0e8 (patch)
tree392c0dbdc797d7400e2801124b4629b9906beb65 /src/afb-api-so-v2.c
parent91b744a510bbf41526f0931df2320379bec87c38 (diff)
afb-api: Define the notion of group for concurrency
Change-Id: Iafbbff8387bb1f8577cb7aeb6e8ed4b14ab1f4a4 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-api-so-v2.c')
-rw-r--r--src/afb-api-so-v2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afb-api-so-v2.c b/src/afb-api-so-v2.c
index 14a92a9f..9d4caeeb 100644
--- a/src/afb-api-so-v2.c
+++ b/src/afb-api-so-v2.c
@@ -264,7 +264,7 @@ int afb_api_so_v2_add_binding(const struct afb_binding_v2 *binding, void *handle
/* records the binding */
afb_api.closure = desc;
afb_api.itf = &so_v2_api_itf;
- afb_api.noconcurrency = binding->noconcurrency;
+ afb_api.group = binding->noconcurrency ? export : NULL;
if (afb_apiset_add(apiset, afb_export_apiname(desc->export), afb_api) < 0) {
ERROR("binding %s can't be registered to set %s...", afb_export_apiname(desc->export), afb_apiset_name(apiset));
goto error;