mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-07 16:17:23 +02:00
Fix comments
This commit is contained in:
parent
a9e3f866a0
commit
a0b850474d
@ -438,6 +438,8 @@ int game_mode_context_register(GameModeContext *self, pid_t client, pid_t reques
|
|||||||
}
|
}
|
||||||
|
|
||||||
game_mode_apply_client_optimisations(self, client);
|
game_mode_apply_client_optimisations(self, client);
|
||||||
|
|
||||||
|
/* Unlock now we're done applying optimisations */
|
||||||
pthread_rwlock_unlock(&self->rwlock);
|
pthread_rwlock_unlock(&self->rwlock);
|
||||||
|
|
||||||
game_mode_client_count_changed();
|
game_mode_client_count_changed();
|
||||||
@ -516,8 +518,6 @@ int game_mode_context_unregister(GameModeContext *self, pid_t client, pid_t requ
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Unlock here, potentially yielding */
|
|
||||||
|
|
||||||
if (!found) {
|
if (!found) {
|
||||||
LOG_HINTED(
|
LOG_HINTED(
|
||||||
ERROR,
|
ERROR,
|
||||||
@ -538,6 +538,7 @@ int game_mode_context_unregister(GameModeContext *self, pid_t client, pid_t requ
|
|||||||
|
|
||||||
game_mode_remove_client_optimisations(self, client);
|
game_mode_remove_client_optimisations(self, client);
|
||||||
|
|
||||||
|
/* Unlock now we're done applying optimisations */
|
||||||
pthread_rwlock_unlock(&self->rwlock);
|
pthread_rwlock_unlock(&self->rwlock);
|
||||||
|
|
||||||
game_mode_client_count_changed();
|
game_mode_client_count_changed();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user