idb info lock (gdb mode only)

Shows information for existing locks in an OpenMP* application.

Syntax

idb info lock [ lock_id, ... ]

Parameters

lock_id

A lock ID.

Description

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:

If you do not specify lock_id, this command shows all existing locks in the OpenMP* application.

Note iconNote

This command is fully supported for OpenMP* versions 3.0 and higher. For older versions, this command has restricted functionality.

Example

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

See Also


Submit feedback on this help topic

Copyright © 1996-2010, Intel Corporation. All rights reserved.