コード例 #1
0
ファイル: stable.c プロジェクト: MrJoe/gtk-gnutella
/**
 * Callout queue periodic event to synchronize persistent DB.
 */
static bool
stable_sync(void *unused_obj)
{
	(void) unused_obj;

	dbstore_sync(db_lifedata);
	return TRUE;		/* Keep calling */
}
コード例 #2
0
ファイル: stable.c プロジェクト: Haxe/gtk-gnutella
/**
 * Callout queue periodic event to synchronize persistent DB.
 */
static gboolean
stable_sync(gpointer unused_obj)
{
    (void) unused_obj;

    dbstore_sync(db_lifedata);
    return TRUE;		/* Keep calling */
}
コード例 #3
0
ファイル: dbstore.c プロジェクト: MrJoe/gtk-gnutella
/**
 * Fully synchronize DBMW database: flush local cache, then the SDBM layer.
 */
void
dbstore_sync_flush(dbmw_t *dw)
{
	dbstore_flush(dw);		/* Flush cached dirty values... */
	dbstore_sync(dw);		/* ...then sync database layer */
}