Question

I am new to FMDB, I am using FMDBQueue to avoid any threading issues, but for some reason when it try to get the data from and operation queue, it is going to semaphore wait. I have attached a thread stack, can someone please check it and help me with understanding the issue?. How can we make sure that we run FMDB calls on a single thread?.

Thread stack

Was it helpful?

Solution

FMDatabaseQueue isn't reentrant. Thread 23 is trying to do that. (You can't call inDatabase: from within inDatabase:)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top