1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-12-23 10:52:13 +00:00

Status callback keys have guaranteed atomicity from caller locks.

This commit is contained in:
Michael Scire 2018-02-27 19:50:31 -08:00
parent 66b3b3a706
commit 1463266190

View file

@ -142,7 +142,6 @@ uint64_t g_smc_callback_key = 0;
uint64_t try_set_smc_callback(uint32_t (*callback)(void *, uint64_t)) {
uint64_t key;
/* TODO: Atomics... */
if (g_smc_callback_key) {
return 0;
}
@ -154,7 +153,6 @@ uint64_t try_set_smc_callback(uint32_t (*callback)(void *, uint64_t)) {
}
void clear_smc_callback(uint64_t key) {
/* TODO: Atomics... */
if (g_smc_callback_key == key) {
g_smc_callback_key = 0;
}