Back to home page

LXR

 
 

    


Warning, /testsuites/psxtests/psx09/psx09.doc is written in an unsupported language. File is not indexed.

0001 # SPDX-License-Identifier: BSD-2-Clause
0002 
0003 #  testsuites/psxtests/psx08/psx08.doc
0004 #  COPYRIGHT (c) 1989-2009.
0005 #  On-Line Applications Research Corporation (OAR). 
0006 #  Copyright (c) 2013 Steven Kou <kou.yongkang@dhs.sg>
0007 #
0008 #  The license and distribution terms for this file may be
0009 #  found in the file LICENSE in this distribution or at
0010 #  http://www.rtems.org/license/LICENSE.
0011 #
0012 This file describes the directives and concepts tested by this test set.
0013 
0014 test set name: psx09
0015 
0016 directives:
0017 + pthread_getschedparam
0018 + pthread_setschedparam
0019 + pthread_mutex_lock
0020 
0021 concepts:
0022 + get the priority of the current thread
0023 + adjusts the priority of the thread 5 times between high and medium priority
0024 + creates a mutex with priority ceiling and locks it to the thread
0025 + thread priority no longer gets adjusted after obtaining mutex
0026 + thread priority gets locked at the ceiling level
0027 + unlocks mutex and thread priority is set to low priority successfully
0028 + lock returns proper status if deleted during lock operation