Skip to content

Instantly share code, notes, and snippets.

@thecfguy
Created October 17, 2013 09:34
Show Gist options
  • Select an option

  • Save thecfguy/7021951 to your computer and use it in GitHub Desktop.

Select an option

Save thecfguy/7021951 to your computer and use it in GitHub Desktop.
<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