lock
lock
lock
Locks a variable or a subroutine. A lock on a variable is maintained
until the lock goes out of scope. If the variable is already locked
by another thread, the
Note that locks on variables only affect other Locking a subroutine blocks any calls to the subroutine until the lock goes out of scope; no other thread can access the subroutine while the lock is in effect. |
|