[asterisk-dev] sleeping in a module

Steven critch at basesys.com
Sun Aug 13 11:19:01 MST 2006


On Sun, 2006-08-13 at 17:20 +0200, Thomas Andrews wrote:

> >From the sqlite docs:
> 
>     "If the virtual machine is unable to open the database file because
>     it is locked by another thread or process, sqlite_step will return
>     SQLITE_BUSY. The calling function should do some other activity, or
>     sleep, for a short amount of time to give the lock a chance to clear,
>     then invoke sqlite_step again."
> 
> The way I see it, I have no option but to call sched_yield().

Or possibly you yield to the idea the sqlite may not be usable as a
database behind a realtime app. Choose a better tool.
-- 
Steven <critch at basesys.com>




More information about the asterisk-dev mailing list