[rtems commit] score: Add comment

Sebastian Huber sebh at rtems.org
Fri Jul 24 07:14:07 UTC 2015


Module:    rtems
Branch:    master
Commit:    9c539101909b46a801e5a319204600fedc1954dc
Changeset: http://git.rtems.org/rtems/commit/?id=9c539101909b46a801e5a319204600fedc1954dc

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Jul 24 09:12:54 2015 +0200

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 7b8f89c..52a040c 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 );



More information about the vc mailing list