PgfDB::sync is now moved to the desctructor for DB_scope

This commit is contained in:
krangelov
2021-09-11 18:20:28 +02:00
parent 4e443374de
commit 6cfa250b28
3 changed files with 22 additions and 23 deletions

View File

@@ -85,8 +85,6 @@ public:
static PGF_INTERNAL_DECL void link_transient_revision(ref<PgfPGF> pgf);
static PGF_INTERNAL_DECL void unlink_transient_revision(ref<PgfPGF> pgf);
PGF_INTERNAL_DECL static void sync();
private:
PGF_INTERNAL_DECL void init_state(size_t size);
@@ -100,10 +98,11 @@ enum DB_scope_mode {READER_SCOPE, WRITER_SCOPE};
class PGF_INTERNAL_DECL DB_scope {
public:
DB_scope(PgfDB *db, DB_scope_mode type);
DB_scope(PgfDB *db, DB_scope_mode m);
~DB_scope();
private:
DB_scope_mode mode;
PgfDB* save_db;
DB_scope* next_scope;
};