afb-proto-ws: Fix autolock in proto-ws
authorJosé Bollo <jose.bollo@iot.bzh>
Fri, 17 Nov 2017 15:51:02 +0000 (16:51 +0100)
committerJosé Bollo <jose.bollo@iot.bzh>
Fri, 17 Nov 2017 16:02:33 +0000 (17:02 +0100)
commitba1f3e26cb5f5f3e95480cb5c6a519a87c4c5d88
tree89f6418dbe20fb37a8fafd7d50069951e185f117
parent8cbdf0a5cb4d9abf0684344a28746a21dfc36ac3
afb-proto-ws: Fix autolock in proto-ws

Because a systemd event loop can not be reentered
while evaluating an event callback, the event loop
was removed from the threads. It had the effect to
enter in deadlock when calling a synchronous call
while in an event callback.

Queueing a job solves the issue.

But because using queued job has implications on
libafbws, a fake job manager is added for libafbws.

Change-Id: Id793bea55743790082eaab48cd4cc87f7993772a
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/CMakeLists.txt
src/afb-proto-ws.c
src/jobs-fake.c [new file with mode: 0644]
src/jobs.c