>- see footer for list info -< Hello, Does anyone know if we can use Semaphores?
I have a page being executed from the CF scheduler to do X&Y which will take some time depending on files to process. I only want the code to run X&Y at one time so if the scheduler kicks the code off again while the previous 'process' is running I want the new process to gracefully exit. In 4D I would use a Semaphore. A developer here has said about using CFLOCK and put all code to be executed once between the tags; but I'm a little unclear on it's usage... I am right thinking that I can set the CFLOCK timeout settting to "1" and then set throwOnTimeout = "no" so that the new process will wait for one second to gain the lock and then drop out naturally without executing any code between the CFLOCK tags? Hope that makes sense. Cheers, Nick _______________________________________________ For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo -- CFDeveloper Sponsors:- >- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -< >- Lists hosted by www.Gradwell.com -< >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
