Refactor getting config values to stop duplicating the rwlock

This commit is contained in:
Marc Di Luzio
2018-05-15 16:52:06 +01:00
parent 39ad076fa9
commit 79f620e013
4 changed files with 58 additions and 26 deletions

View File

@@ -81,7 +81,7 @@ bool config_get_client_blacklisted(GameModeConfig *self, const char *client);
/*
* Get the frequency (in seconds) for the reaper thread
*/
long config_get_reaper_thread_frequency(GameModeConfig *self);
void config_get_reaper_thread_frequency(GameModeConfig *self, long *value);
/*
* Get a set of scripts to call when gamemode starts