Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: added a few words

...

An object should use a private internal lock object rather than its own intrinsic lock . An object should rely on its intrinsic lock only if unless all of the following conditions are met:

If any of these conditions are violated, the object's intrinsic lock is not trustworthy. If all conditions are satisfied, then the object gains no significant security from using a private internal lock object, and so it may rely on synchronize using its own intrinsic lock.

Noncompliant Code Example

...