aboutsummaryrefslogtreecommitdiffstats
path: root/src/calcurse.h
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@calcurse.org>2017-09-08 20:34:37 +0200
committerLukas Fleischer <lfleischer@calcurse.org>2017-09-08 21:08:54 +0200
commit7a0134204ebf3fe03ce670348c326521ae48f2ed (patch)
treef3227b665f49cc45710a9a1fc3cb516aded9814f /src/calcurse.h
parent0f3d1988bfacd86075c7306723ea11d63afa766a (diff)
downloadcalcurse-7a0134204ebf3fe03ce670348c326521ae48f2ed.tar.gz
calcurse-7a0134204ebf3fe03ce670348c326521ae48f2ed.zip
Use a shared input/output mutex
Replace the save mutex with a common mutex, which is locked whenever read or write operations on the data files are performed. Also, since this mutex is an implementation detail, mark the locking functions static and remove them from the header file. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src/calcurse.h')
-rw-r--r--src/calcurse.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/calcurse.h b/src/calcurse.h
index 5fa4639..59b46b5 100644
--- a/src/calcurse.h
+++ b/src/calcurse.h
@@ -836,8 +836,6 @@ void ical_export_data(FILE *, int);
unsigned io_fprintln(const char *, const char *, ...);
void io_init(const char *, const char *);
void io_extract_data(char *, const char *, int);
-void io_save_mutex_lock(void);
-void io_save_mutex_unlock(void);
void io_dump_apts(const char *, const char *, const char *, const char *);
unsigned io_save_apts(const char *);
void io_dump_todo(const char *);