home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / compiler / tls / readme.txt < prev    next >
Encoding:
Text File  |  1996-02-20  |  2.9 KB  |  76 lines

  1. ***************************************************************************
  2. *  TLS SAMPLE PROJECT: Readme File                                        *
  3. *                                                                         *
  4. * COPYRIGHT: Copyright(C) International Business Machines Corp.,1995.     *
  5. *                                                                         *
  6. * DISCLAIMER OF WARRANTIES:                                               *
  7. *   The accompanying code is sample code created by the IBM Corporation.  *
  8. *   This sample code is not part of any standard IBM product and is       *
  9. *   provided to you solely for the purpose of assisting you in the        *
  10. *   development of your applications.  The code is provided "AS IS",      *
  11. *   without warranty of any kind.  IBM shall not be liable for any        *
  12. *   damages arising out of your use of the sample code, even if they      *
  13. *   have been advised of the possibility of such damages.                 *
  14. ***************************************************************************
  15. SAMPLE - TLS
  16.    DESCRIPTION:
  17.         Through the use of the __thread keyword, The VisualAge for C++
  18.         compiler provides Thread-Local Storage (TLS) support. Static and global
  19.         TLS variables declared with this keyword will have copies created on
  20.         a per-thread basis. This means that each thread will have its own copy
  21.         of a TLS variable which can be modified without affecting the contents
  22.         of the variable in any other thread.
  23.  
  24.    TASK:
  25.         Shows multiple threads modifying a static TLS variable.
  26.  
  27.    CONCEPT/FEATURE:
  28.         This program creates two threads. The first thread modifies the
  29.         value of a static TLS variable. The second thread checks the value
  30.         of this variable to verify that its local copy has not been
  31.         affected.
  32.  
  33.         For more information on VisualAge for C++'s TLS support, please refer
  34.         to VisualAge for C++'s Programming Guide.
  35.  
  36.    SOURCE FILE LOCATION:
  37.         X:\ibmcppw\samples\compiler\tls
  38.  
  39.         where X: is the drive you installed the samples and document
  40.         component of VisualAge for C++.
  41.  
  42.  
  43. HOW TO RUN THE SAMPLE:
  44.  
  45.    FROM THE COMMAND LINE:
  46.         Simply type the name of the .EXE file, that is:
  47.  
  48.             TLS
  49.  
  50.  
  51. HOW TO BUILD THE SAMPLE YOURSELF:
  52.  
  53.    FROM THE COMMAND LINE:
  54.  
  55.        Run NMAKE
  56.  
  57. SOURCE FILES - TLS:
  58.  
  59.     FILE NAME(s)   DESCRIPTION
  60.     ------------   ------------
  61.     tls.c          C source code for TLS sample.
  62.     makefile       Makefile to build the sample.
  63.  
  64.  
  65. MORE VISUALAGE FOR C++ SAMPLES INFORMATION:
  66.  
  67.     A complete listing of samples shipped with the VisualAge for C++
  68.     product can be found in the online GUIDE to SAMPLES. To access this
  69.     notebook, simply:
  70.  
  71.     - Open the VISUALAGE FOR C++ program group in the Program Manager window,
  72.       then,
  73.  
  74.     - Open the GUIDE TO SAMPLES notebook in the program group.
  75.  
  76.