Protect file footer from concurrent access 83/160883/20
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Fri, 24 Nov 2017 10:03:45 +0000 (11:03 +0100)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Wed, 29 Nov 2017 11:20:09 +0000 (12:20 +0100)
commit75c2d19666087e654733a0c4059912ed6defd2b6
treeff3a1b44d0ab233e27241b397140d49986c1830b
parent5af856b298c4208652493a10d2b466819a4385c9
Protect file footer from concurrent access

Add mutex synchronisation.

Can't use runtime::File locks because it's not possible to truncate a file
during writing without closing the descriptor (and unlocking the lock).
Derivation won't help either as the descriptor is private.

Change-Id: I5e22b21dca48b1b3d17ae6b2e4084c1029f84089
server/key-server.cpp
server/key-server.h