Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Threadsafe question
Fri, Sep 15 2006 2:09 AMPermanent Link

"Clive"
In V4, if i setup custom functions, is it OK to use these in threads?.. I
would assume No, Or yes maybe as long as you dont reference any non-thread
variables in the function.

If not, is there any other way of having custom functions available in
threads as you can only have one engine object per application.

cheers
Clive.

Fri, Sep 15 2006 3:37 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Clive


As long as the queries or tables are thread safe....

Roy Lambert
Fri, Sep 15 2006 3:39 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Clive,

<< In V4, if i setup custom functions, is it OK to use these in threads?.. I
would assume No, Or yes maybe as long as you dont reference any non-thread
variables in the function. >>

Yes, they are thread-safe provided that you don't do anything that isn't
thread-safe inside of them.  IOW, if you perform data access, then make sure
that you use local variables inside of the event handler for all data access
components, and make sure that you create a separate session, etc. to ensure
that the data access is thread-safe.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image