Cody Caughlan wrote:
In looking at the FarCry source code I have noticed that the usage of CFLOCKing access to the APPLICATION and sometimes SERVER structures is not always consistent (that is, most of the time there are no locks). I always think its best practice to lock any write's to these variables and would be concerned about integrity if this is not the case.
Maybe I am off my rocker here, but could anyone shed some light on this issue in regards to FarCry?

Jeff posted at length earlier on this. There is no point write locking unless you are also going to read lock everything. The only need to lock is to prevent RACE conditions. Mostly app and server scope is used to store constants, factory objects and HTML caches. These are essentially unchanging and are by and large not subject to race conditions.


-- geoff
http://www.daemon.com.au/

---
You are currently subscribed to farcry-dev as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to