Page 1 of 1

Thread-safe if ReadOnly?

Posted: Sat 09 Apr 2016 04:10
by Theprasit
Using VT in multi-thread application with Read-Only e.g. configuration file.
I start new thread of each operation and read VT from disk file on this operation.

Is it safe?

Regards,

Theprasit

Re: Thread-safe if ReadOnly?

Posted: Mon 11 Apr 2016 09:21
by AlexP
Hello,

You can't load data simultaneously in different threads from a file to a single instance of VirtualTable, since data in VT are cleared before loading - and concurrent data loading will cause errors.