From b6bce5d13a90de0030e58d897bfef0521f1844eb Mon Sep 17 00:00:00 2001 From: msupernaw2 Date: Thu, 25 Apr 2019 09:19:10 -0400 Subject: [PATCH] added rest function --- VariableInfo.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/VariableInfo.hpp b/VariableInfo.hpp index b33403b..230f932 100644 --- a/VariableInfo.hpp +++ b/VariableInfo.hpp @@ -69,6 +69,12 @@ namespace atl { return ret; //(++_id); } + void reset(){ + this->available = std::stack(); + available_size =0; + _id =1; + } + void release(const uint32_t& id) { #ifdef ATL_THREAD_SAFE lock.lock();