Вопрос

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

Это было полезно?

Решение

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

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top