1 /* 2 * Copyright (c) 2025 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef DEBUG_STEP_FLAGS_H 17 #define DEBUG_STEP_FLAGS_H 18 19 #include <mutex> 20 21 class DebugStepFlags { 22 public: 23 static DebugStepFlags& Get(); 24 void SetDyn2StatInto(bool value); 25 void SetDyn2StatOut(bool value); 26 void SetDyn2StatOver(bool value); 27 void SetStat2DynInto(bool value); 28 void SetStat2DynOut(bool value); 29 void SetStat2DynOver(bool value); 30 31 bool GetDyn2StatInto(); 32 bool GetDyn2StatOut(); 33 bool GetDyn2StatOver(); 34 bool GetStat2DynInto(); 35 bool GetStat2DynOut(); 36 bool GetStat2DynOver(); 37 38 private: 39 bool dyn2statInto_ = false; 40 bool dyn2statOut_ = false; 41 bool dyn2statOver_ = false; 42 43 bool stat2dynInto_ = false; 44 bool stat2dynOut_ = false; 45 bool stat2dynOver_ = false; 46 47 std::mutex mutex_; 48 }; 49 50 #endif // DEBUG_STEP_FLAGS_H