Skip to content
Snippets Groups Projects
Commit d3fde05e authored by Daniel Hornung's avatar Daniel Hornung
Browse files

ENH: Utility function to reset the grpc arena.

parent 5ad56ce9
Branches
Tags
2 merge requests!33Release 0.1,!30Debug build
Pipeline #14576 passed with warnings
Pipeline: caosdb-cppinttest

#14577

    This commit is part of merge request !33. Comments created here will be created in the context of that merge request.
    ...@@ -41,6 +41,7 @@ namespace caosdb::utility { ...@@ -41,6 +41,7 @@ namespace caosdb::utility {
    using google::protobuf::Arena; using google::protobuf::Arena;
    auto get_arena() -> Arena *; auto get_arena() -> Arena *;
    auto reset_arena() -> void;
    /** /**
    * Abstract wrapper class for Protobuf messages. * Abstract wrapper class for Protobuf messages.
    ......
    ...@@ -30,4 +30,8 @@ auto get_arena() -> Arena * { ...@@ -30,4 +30,8 @@ auto get_arena() -> Arena * {
    return &arena; return &arena;
    } }
    auto reset_arena() -> void {
    get_arena()->Reset();
    }
    } // namespace caosdb::utility } // namespace caosdb::utility
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment