Back to home page

LXR

 
 

    


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

0001 # SPDX-License-Identifier: BSD-2-Clause
0002 
0003 #  testsuites/psxtests/psx06/psx06.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: psx06
0015 
0016 directives:
0017 + pthread_key_create
0018 + pthread_setspecific
0019 + pthread_getspecific
0020 + pthread_key_delete
0021 
0022 concepts:
0023 + gets the ID of the current thread
0024 + creates 2 more threads for the 2 tasks
0025 + creates a key
0026 + attempts to create another key
0027 + attempts to set and get a value for the key
0028 + attempts to delete the key
0029 + sets the value of the key to 0
0030 + verifies the correct value is set
0031 + task 1 sets the key value to 1 and verifies it before exiting
0032 + destructor was invoked 4 times by this stage
0033 + task 2 sets the key value to 2 and verifies before exiting
0034 + deletes the key
0035 + destructor was invoked 5 times in total
0036