Istvan Kovacs wrote:Local variables are inherently thread-safe.
Be careful here.... If the local variable is a primative variable, then yes, it is thread safe. If the local variable is a reference that is pointing to a locally created object, then yes, it should be thread safe (assuming the statics are thread safe). If the local variable is a reference that is pointing to an externally created object, then it is thread safe, if and only if the object can be used safely in a threaded fashion.
This last clarification is the same clarification as with non-local variables.
Henry