Do I need to lock a table during a FLUSH when using VSDK C++ API in multi-threaded app?

Ivan Smahin ivan_smahin at valentina-db.com
Wed Aug 16 13:35:59 CDT 2006


Hello Matthew,

Wednesday, August 16, 2006, 1:32:49 PM, you wrote:

> On Aug 16, 2006, at 3:27 AM, Ivan Smahin wrote:

>> Hello Matthew,
>>
>> Wednesday, August 16, 2006, 1:24:34 PM, you wrote:
>>
>>> On Aug 16, 2006, at 3:16 AM, Ivan Smahin wrote:
>>
>>>> Hello Matthew,
>>>>
>>>> Wednesday, August 16, 2006, 1:06:55 PM, you wrote:
>>>>
>>>>> My understanding was that there was some support for multiple  
>>>>> threads
>>>>> in version 2 of Valentina. If not, what is the point of record
>>>>> locking?
>>>>
>>>> Record  locking prevent to get access to locked records using
>>>> different
>>>> cursors.
>>>>
>>>>> What exactly has changed from version 1 to version 2 of VSDK  
>>>>> related
>>>>> to multi-thread support? Anything? Version 1 required me to lock  
>>>>> the
>>>>> entire Valentina engine, so that only one thread at a time could do
>>>>> a Valentina call. Has this changed in version 2 or not? It was my
>>>>> understanding
>>>>> that it had. What is the story?
>>>>
>>>> This  task (and transactions) is still in process. Where have you  
>>>> read
>>>> about multithreading in V2?
>>>>
>>
>>> So is it still true that I must have a global lock/semaphore to
>>> control access
>>> to the entire Valentina engine? (So that only one thread at a time
>>> can make
>>> any calls to Valentina?)
>>
>> It will be 100% safe.
>> We hope we will get the multi-threaded solution ASAP.
>>

> What does "It will be 100% safe" mean?

> I asked if I still need to lock the entire engine, and I was hoping
> for either "yes" or "no".

Currently the answer is - Yes.

-- 
Best regards,
 Ivan                            mailto:ivan_smahin ÎÁ valentina-db.com



More information about the Valentina mailing list