Intel® Advisor Help

Dangling Lock

Occurs when a task does not release a lock before the task ends.

Problem type: Dangling lock

ID

Code Location

Description

1

Allocation site

If present, represents the location and associated call stack when the lock was created.

2

Lock owned

If present, represents the location and its associated call stack when the lock was last acquired.

3

Parallel site

If present, represents the location and associated call stack of the site-begin annotation of the parallel site containing the task that acquired the lock.

Example

void problem()
{
    ANNOTATE_SITE_BEGIN(dangle_site1);        // Parallel site
        ANNOTATE_TASK_BEGIN(task1);
            ANNOTATE_LOCK_ACQUIRE(&dangle);   // Lock owned
        ANNOTATE_TASK_END();
     // ...
    ANNOTATE_SITE_END();
}

In this example:

Possible Correction Strategies

For more information about lock annotations, see the help topics below.

See Also