My Social Security
This can be called from any course of or thread, not onlythe process or thread which initially acquired the lock. With the block argument set to False, the strategy call does notblock. If the lock is at present in a locked state, return False;otherwise set the lock to a locked state and return True. If a course of is killed while it's making an att