V4RB 3.0 and pre-emptive threads
Dave Addey
listmail1 at dsl.pipex.com
Fri Jul 20 09:04:51 CDT 2007
Hi Ruslan,
Thanks for the info on this. One final question: is it possible to pass
Valentina objects (Databases, Tables) from REALbasic to a plugin (my own
plugin)? And pass a Vcursor back? I'm trying to avoid having to move *all*
of my Valentina code to a plugin...
Dave.
> From: Ruslan Zasukhin <sunshine at public.kherson.ua>
> Reply-To: Valentina Developers <valentina at lists.macserve.net>
> Date: Fri, 20 Jul 2007 10:56:38 +0300
> To: "valentina at lists.macserve.net" <valentina at lists.macserve.net>
> Conversation: V4RB 3.0 and pre-emptive threads
> Subject: Re: V4RB 3.0 and pre-emptive threads
>
> On 20/7/07 10:08 AM, "Dave Addey" <listmail1 at dsl.pipex.com> wrote:
>
> Hi Dave,
>
>> Actually, I have one more question on threading:
>>
>> Do I need to control access to Valentina with a mutex...
>>
>> 1) ...at a database level (so that only one thread is accessing each
>> database at a time)? I usually have several databases open.
>
> no
>
>> 2) ...at an application level (so that only one thread is accessing anything
>> to do with Valentina at a time)?
>
> YES THIS ONE
>
> Because exists single CACHE that manage few dbs
>
>
>> 3) ...actually, it doesn't matter, because the Valentina Kernel will block
>> any thread which tries to access Valentina whilst something is already
>> happening? It will then unblock the thread when the first Valentina action
>> has completed. (This is a guess!)
>>
>> I'm using V4RB 3.1 in REALbasic 2007r3, and am using Taylor Design's
>> "PreemptiveThreadTD" classes to run REALbasic code on a background thread.
>> I am running from a local file database, which is only even opened by this
>> one application.
>>
>> Apologies for the continued questions - I want to make sure my use of
>> pre-emptive threads Valentina is completely safe.
>
> --
> Best regards,
>
> Ruslan Zasukhin
> VP Engineering and New Technology
> Paradigma Software, Inc
>
> Valentina - Joining Worlds of Information
> http://www.paradigmasoft.com
>
> [I feel the need: the need for speed]
>
>
> _______________________________________________
> Valentina mailing list
> Valentina at lists.macserve.net
> http://lists.macserve.net/mailman/listinfo/valentina
More information about the Valentina
mailing list