Threads: handles request with threads
authorJosé Bollo <jose.bollo@iot.bzh>
Wed, 3 Aug 2016 18:04:08 +0000 (20:04 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Mon, 10 Oct 2016 15:33:32 +0000 (17:33 +0200)
commit98a5bca16007a7c4740c4326ef83768d034aed3e
tree03c89999f85364603d99121b09cd0bf3f78cfebe
parent1d5157a6c68a790f7a50811f4a3b48b29ee82f58
Threads: handles request with threads

This implementation handles all requests with threads.
Later implementation could add a mechanism to choose
what request will be handled by threads.

Each API receive its requests in serial order without
reentrancy. Here again, this can change in the future
if a choice is possible to allow reentrant calls.

The signal/event are not processed using threads
in this version. It may change in the future.

Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/CMakeLists.txt
src/afb-api-so.c
src/afb-sig-handler.c
src/afb-sig-handler.h
src/afb-thread.c [new file with mode: 0644]
src/afb-thread.h [new file with mode: 0644]
src/main.c
src/tests/test-thread.c [new file with mode: 0644]
src/tests/test-thread.sh [new file with mode: 0755]