Created
October 17, 2013 09:34
-
-
Save thecfguy/7021951 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <cfscript> | |
| writeOutput("Before lock at #now()#"); | |
| lock name="threadlock" timeout="3" type="exclusive" | |
| { | |
| writeOutput("<br/>started at #now()#"); | |
| thread action="sleep" duration="10000"; | |
| writeOutput("<br/>ended at #now()#"); | |
| } | |
| writeOutput("<br/>After lock at #now()#"); | |
| </cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment