getHelper of BaseDatabaseDefinition no thread safe?
Looks like no thread protection is done there. In multi-thread environment, looks like it's possible to have more than one FlowSQLiteOpenHelper created. Wouldn't that be a problem?
+1
@agrosner Could you shed some light on this? or help me understand why this is not a problem?
it's possible, but not recommended. If you need thread-safe operations, or wait for stuff to happen async, use the DBTransactionQueue via BaseTransaction subclasses.
Hi,
I just commented on an related issue (https://github.com/Raizlabs/DBFlow/issues/357) and would like to reopen the discussion about thread safety without using the DBTransactionQueue.
Tank you!
np @BernhardReu Will put this in next beta.
fixed in beta6