[Interest] saving data using QtSql during shutdown
thiago.macieira at intel.com
Mon Nov 11 13:39:40 CET 2013
On segunda-feira, 11 de novembro de 2013 10:16:18, Francisco Ares wrote:
> I am finishing an embedded system, using Linux and Qt as the base of the
> application that manages the system, and as a manager to a SQLite database
> for this application. As it will be using a flash SATA module, I would not
> like to do many and frequent write operations to it.
> So, I would like to know, on a ACPI shutdown request, how to safely commit
> the remaining data to the database.
Make the ACPI shutdown request cause some noticeable change in the application
state. For example, a SIGTERM, which you can catch and cause the data to be
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 190 bytes
Desc: This is a digitally signed message part.
More information about the Interest