Shows information for existing locks in an OpenMP* application.
idb info lock [ lock_id, ... ]
lock_id |
A lock ID. |
The OpenMP runtime library contains various lock routines that you can use for synchronization.
This command displays the following information for any existing locks, which you specify with lock_id, in an OpenMP* application:
state
type
the tasks or threads holding references to the lock
The tasks or threads that are waiting for the lock
the lock's location
the source code that created the current lock
If you do not specify lock_id, this command shows all existing locks in the OpenMP* application.
This command is fully supported for OpenMP* versions 3.0 and higher. For older versions, this command has restricted functionality.
The following example illustrates the type of information that idb info lock displays:
(idb) c [1] stopped at [void nestable():10 0x08048cc5] 10 } // func nestable (idb) idb info lock nlk Id Type State Holder Id Level Waiters 0x02 nested held 1 1 3 threads: 2, 3, 4
Copyright © 2001-2011, Intel Corporation. All rights reserved.