Skip to content

Commit

Permalink
Merge pull request #99 from alexrp/master
Browse files Browse the repository at this point in the history
Document that synchronized supports recursive locking.
  • Loading branch information
andralex committed Mar 16, 2012
2 parents a772ec9 + 4c4ca4e commit c44bdcb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions statement.dd
Expand Up @@ -1404,6 +1404,12 @@ synchronized { ... }
$(P This implements a standard critical section.
)

$(P Synchronized statements support recursive locking; that is, a
function wrapped in synchronized is allowed to recursively call
itself and the behavior will be as expected: The mutex will be
locked and unlocked as many times as there is recursion.
)

<h2>$(LNAME2 TryStatement, Try Statement)</h2>

Exception handling is done with the try-catch-finally statement.
Expand Down

0 comments on commit c44bdcb

Please sign in to comment.