libdlog: improve concurrency 00/200400/2
authorMichal Bloch <m.bloch@samsung.com>
Fri, 22 Feb 2019 13:30:12 +0000 (14:30 +0100)
committerMichal Bloch <m.bloch@samsung.com>
Fri, 22 Feb 2019 20:03:14 +0000 (21:03 +0100)
commit45d61a85ce8e6438ad6998d301bbe606e4d4e2a1
tree8504f7d8cf7dd8ac7f6977ca0bc079161ba5c8f5
parentdd4be30f7a6d882f6c2d39e33d83d0c78ef9dadf
libdlog: improve concurrency

Use rwlocks since they are faster than a mutex in the common case
where only reads happen. Made locks more granular to prevent the
case where writing one resource prevents reading a different one.

Change-Id: Ifdee42dae8a3e03c56be259551059c28d6798630
Makefile.am
include/libdlog.h
src/libdlog/dynamic_config.c
src/libdlog/log.c
src/libdlog/log_pipe.c
src/tests/dynamic_config.c
src/tests/libdlog_pipe.c