|Subject:||Re: Should i Synchronize Session.object code execution in OnCommadGet|
|Posted by:||Remy Lebeau \(Indy Team\) (firstname.lastname@example.org)|
|Date:||Wed, 31 Oct 2007|
"Ken Madsen" <kenh…@yahoo.dk> wrote in message
> Is my implementation threadsafe
That depends on what TMySession.DoSomething() is actually doing.
> should i do something myself to be sure the clients sessions
> dont interfear with another
Sessions are already separated by TIdHTTPServer for you. However, you have
to make sure that the code inside of DoSomething() does not interfer with
other instances of itself that may be running at the same time. Again, that
depends on what operations you are actually performing to begin with.
Should i Synchronize Session.object code execution in OnCommadGet posted by Ken Madsen on Wed, 31 Oct 2007