mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-10-21 17:28:53 +00:00
Refactor resetprop
This commit is contained in:
@@ -572,17 +572,17 @@ const prop_info *prop_area::find_property_and_del(prop_bt *const trie, const cha
|
||||
|
||||
uint_least32_t prop_offset = atomic_load_explicit(¤t->prop, memory_order_relaxed);
|
||||
if (prop_offset != 0) {
|
||||
printf("[bt] found at %p: name='%s' prop='%llu' left='%llu' right='%llu' children='%llu'\n",
|
||||
static_cast<void*>(current), current->name,
|
||||
static_cast<unsigned long long>(atomic_load_explicit(¤t->prop, memory_order_relaxed)),
|
||||
static_cast<unsigned long long>(atomic_load_explicit(¤t->left, memory_order_relaxed)),
|
||||
static_cast<unsigned long long>(atomic_load_explicit(¤t->right, memory_order_relaxed)),
|
||||
static_cast<unsigned long long>(atomic_load_explicit(¤t->children, memory_order_relaxed))
|
||||
);
|
||||
// printf("[bt] found at %p: name='%s' prop='%llu' left='%llu' right='%llu' children='%llu'\n",
|
||||
// static_cast<void*>(current), current->name,
|
||||
// static_cast<unsigned long long>(atomic_load_explicit(¤t->prop, memory_order_relaxed)),
|
||||
// static_cast<unsigned long long>(atomic_load_explicit(¤t->left, memory_order_relaxed)),
|
||||
// static_cast<unsigned long long>(atomic_load_explicit(¤t->right, memory_order_relaxed)),
|
||||
// static_cast<unsigned long long>(atomic_load_explicit(¤t->children, memory_order_relaxed))
|
||||
// );
|
||||
atomic_store_explicit(¤t->prop, 0, memory_order_release);
|
||||
return to_prop_info(¤t->prop);
|
||||
} else {
|
||||
printf("[bt] property not found\n");
|
||||
// printf("[bt] property not found\n");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user