mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-25 08:53:06 +02:00
Call pthread_rwlock_init on the rwlock
The spec says the results are undefined if an uninitialised read-write lock is used without being initialised, though evidently things were working out alright
This commit is contained in:
parent
72e24b5292
commit
7a3ae91781
@ -102,6 +102,7 @@ void game_mode_context_init(GameModeContext *self)
|
||||
update_initial_gov_state();
|
||||
LOG_MSG("governor is set to [%s]\n", get_initial_governor());
|
||||
|
||||
pthread_rwlock_init(&self->rwlock, NULL);
|
||||
pthread_mutex_init(&self->reaper.mutex, NULL);
|
||||
pthread_cond_init(&self->reaper.condition, NULL);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user