diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-01-13 22:37:31 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-01-13 22:37:31 (GMT) |
commit | 23b9c6e68bbe5f0531f9a9408c2deb9f897701dc (patch) | |
tree | 3804d6c21c9cd5e291cb8c7853607cdda992d125 /src/arch | |
parent | a6975c1d754a1ba5bfb9e23f0b26692c746e6f9c (diff) |
Created a real iterator for symbols.
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/processor.c | 4 |
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); } |