summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/processor.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/arch/processor.c b/src/arch/processor.c
index 21b6c49..78ded34 100644
--- a/src/arch/processor.c
+++ b/src/arch/processor.c
@@ -374,11 +374,15 @@ void g_arch_processor_lock_unlock(GArchProcessor *proc, bool state)
if (state)
{
g_mutex_lock(&proc->mutex);
+#ifndef NDEBUG
g_atomic_int_set(&proc->locked, 1);
+#endif
}
else
{
+#ifndef NDEBUG
g_atomic_int_set(&proc->locked, 0);
+#endif
g_mutex_unlock(&proc->mutex);
}