You could have a flag (or structure of flags) in the CFC scope, that you
set and read depending on the locking status.
It could also be that the locks should be on the calling page/cfc/etc,
e.g. start lock, create object, call method1, call method2, end lock.
/Hugo
-------------------------------------------------------------
Hugo Ahlenius E-Mail: [EMAIL PROTECTED]
Project Officer Phone: +46 8 230460
UNEP GRID-Arendal Fax: +46 8 230441
Stockholm Office Mobile: +46 733 467111
WWW: http://www.grida.no
-------------------------------------------------------------
| -----Original Message-----
| From: Jamie Jackson [mailto:[EMAIL PROTECTED]
| Sent: Tuesday, February 24, 2004 18:40
| To: CF-Talk
| Subject: Factoring out locking in CFC
|
| Say I've got a CFC with several methods whose operations (e.g.
| <cfexecutes>) need identical named locks, so that none can
| run concurrently. Is there a way to factor out a "locking"
| method that can be used by the other methods, or is this the
| exclusive domain of custom tags?
|
| The only way that I can figure to do it in the context of a
| CFC is to abstract the whole idea of an "operation" into its
| own method, and lock the operation there.
|
| Am I thinking straight?
|
| Thanks,
| Jamie
|
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

