If I have a Generator.cfc with methods:
numeric function next()
{
return variables.num++; // Is ++ an atomic operation??
}
And:
application.generator = new generator();
If every request calls application.generator.next(), will this generator ever generate the same number twice on heavy load? In another word... is this thread-safe? If not, where should the lock be?