Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4363076

need way to test if current thread holds object lock

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.3.0
    • core-libs
    • None
    • beta
    • generic
    • solaris_8
    • Verified

      In combination with the new assert facility it would be useful if you
      could test whether the current thread holds the lock on an object.
      Something like:

      boolean Object.lockHeld();

      would do.

            jjb Josh Bloch (Inactive)
            bshannon Bill Shannon (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: