mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-11-09 22:56:35 +00:00
Status callback keys have guaranteed atomicity from caller locks.
This commit is contained in:
parent
66b3b3a706
commit
1463266190
1 changed files with 0 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue