mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-08-05 20:58:29 +02:00
Refactor getting config values to stop duplicating the rwlock
This commit is contained in:
@@ -460,7 +460,8 @@ static void *game_mode_context_reaper(void *userdata)
|
||||
/* Stack, not allocated, won't disappear. */
|
||||
GameModeContext *self = userdata;
|
||||
|
||||
long reaper_interval = config_get_reaper_thread_frequency(self->config);
|
||||
long reaper_interval = 0.0f;
|
||||
config_get_reaper_thread_frequency(self->config, &reaper_interval);
|
||||
|
||||
struct timespec ts = { 0, 0 };
|
||||
ts.tv_sec = time(NULL) + reaper_interval;
|
||||
|
Reference in New Issue
Block a user