From 9c539101909b46a801e5a319204600fedc1954dc Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 24 Jul 2015 09:12:54 +0200 Subject: score: Add comment --- cpukit/score/include/rtems/score/threadimpl.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cpukit/score/include/rtems/score/threadimpl.h b/cpukit/score/include/rtems/score/threadimpl.h index 7b8f89c346..52a040cf6f 100644 --- a/cpukit/score/include/rtems/score/threadimpl.h +++ b/cpukit/score/include/rtems/score/threadimpl.h @@ -1224,6 +1224,11 @@ RTEMS_INLINE_ROUTINE void _Thread_Lock_restore_default( Thread_Control *the_thread ) { + /* + * Ensures that the stores to the wait queue and operations completed before + * the default lock is restored. See _Thread_Wait_set_queue() and + * _Thread_Wait_restore_default_operations(). + */ _Atomic_Fence( ATOMIC_ORDER_RELEASE ); _Thread_Lock_set_unprotected( the_thread, &the_thread->Lock.Default ); -- cgit v1.2.3