HP aC++/HP C A.06.20 Programmer's Guide

OMP_SCHEDULE..................................................................................................219
OMP_NUM_THREADS.........................................................................................220
OMP_DYNAMIC...................................................................................................220
OMP_NESTED.......................................................................................................220
Runtime Library Functions in OpenMP......................................................................221
Execution Environment Functions..............................................................................221
omp_set_num_threads...........................................................................................221
omp_get_num_threads..........................................................................................222
omp_get_max_threads...........................................................................................222
omp_get_thread_num............................................................................................222
omp_get_num_procs..............................................................................................222
omp_in_parallel.....................................................................................................223
omp_set_dynamic..................................................................................................223
omp_get_dynamic..................................................................................................223
omp_set_nested......................................................................................................223
omp_get_nested.....................................................................................................224
Lock Functions.............................................................................................................224
omp_init_lock and omp_init_nest_lock.................................................................224
omp_destroy_lock and omp_destroy_nest_lock...................................................224
omp_set_lock and omp_set_nest_lock...................................................................224
omp_unset_lock and omp_unset_nest_lock..........................................................225
omp_test_lock and omp_test_nest_lock Functions................................................225
Timing Functions.........................................................................................................226
omp_get_wtime......................................................................................................226
omp_get_wtick.......................................................................................................226
9 Tools and Libraries..................................................................................................................227
HP Specific Features of lex and yacc................................................................................227
Creating and Using Libraries............................................................................................228
HP aC++ Libraries........................................................................................................228
Standard C++ Library.............................................................................................228
Introduction............................................................................................................229
Introduction to Using the Standard C++ Library...................................................229
Differences between Standard C++ Library and Other Libraries..........................230
The Non-Object-Oriented Design of the Standard C++ Library............................230
Smaller Source Code.........................................................................................231
Flexibility..........................................................................................................231
Efficiency...........................................................................................................231
Iterators: Mismatches and Invalidations..........................................................231
Templates: Errors and Code Bloat....................................................................231
Multithreading Problems..................................................................................231
Standard C++ Library Reference............................................................................232
Incompatibilities Between the Library and the Standard......................................232
16 Table of Contents