diff options
author | Lars Henriksen <LarsHenriksen@get2net.dk> | 2018-09-02 07:57:02 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2018-10-21 20:02:57 +0200 |
commit | ff402d21abdf4c33aa2c6bd81bc0a4818f00edfc (patch) | |
tree | 9fa948c1289f43acfef1a1ce442982726f79dd57 /test/data/apts-event-003 | |
parent | 837f6293415e72603832a5864e449ee2bad70a2f (diff) | |
download | calcurse-ff402d21abdf4c33aa2c6bd81bc0a4818f00edfc.tar.gz calcurse-ff402d21abdf4c33aa2c6bd81bc0a4818f00edfc.zip |
New save/load mutex strategy
A complete save or reload operation is made up of several cooperating lower
level function calls. In stead of protecting the lower level read or write calls
on the data files, the entire save or load operation is protected in order to
ensure its integrity.
Thus mutex protection has been moved from the level:
io_load_data(), io_merge_data(), new_data(),
to two functions at the higher level:
io_save_cal(), io_reload_data().
The protection includes pre- and post-hooks.
The function io_load_data() needs no protection when calcurse starts up
(threads not yet started) or runs in non-interactive mode (no threads involved).
Signed-off-by: Lars Henriksen <LarsHenriksen@get2net.dk>
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'test/data/apts-event-003')
0 files changed, 0 insertions, 0 deletions