-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
opt(flow):1.8.0, 修改Action的setFinishCallback()接口,添加Reason,Trace
- Loading branch information
Showing
25 changed files
with
289 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,35 @@ | ||
#ifndef TBOX_FLOW_ACTION_REASON_H_20240316 | ||
#define TBOX_FLOW_ACTION_REASON_H_20240316 | ||
/* | ||
* .============. | ||
* // M A K E / \ | ||
* // C++ DEV / \ | ||
* // E A S Y / \/ \ | ||
* ++ ----------. \/\ . | ||
* \\ \ \ /\ / | ||
* \\ \ \ / | ||
* \\ \ \ / | ||
* -============' | ||
* | ||
* Copyright (c) 2024 Hevake and contributors, all rights reserved. | ||
* | ||
* This file is part of cpp-tbox (https://github.com/cpp-main/cpp-tbox) | ||
* Use of this source code is governed by MIT license that can be found | ||
* in the LICENSE file in the root of the source tree. All contributing | ||
* project authors may be found in the CONTRIBUTORS.md file in the root | ||
* of the source tree. | ||
*/ | ||
|
||
namespace tbox { | ||
namespace flow { | ||
#ifndef TBOX_FLOW_ACTION_REASON_H_20240317 | ||
#define TBOX_FLOW_ACTION_REASON_H_20240317 | ||
|
||
enum ActionReason { | ||
kSuccess, | ||
}; | ||
#define ACTION_REASON_NONE 0 | ||
#define ACTION_REASON_ACTION_TIMEOUT 1 //!< "ActionTimeout" | ||
#define ACTION_REASON_FUNCTION_ACTION 2 //!< "FunctionAction" | ||
#define ACTION_REASON_SLEEP_ACTION 3 //!< "SleepAction" | ||
#define ACTION_REASON_SUCC_ACTION 4 //!< "SuccAction" | ||
#define ACTION_REASON_FAIL_ACTION 5 //!< "FailAction" | ||
#define ACTION_REASON_START_CHILD_FAIL 6 //!< "StartChildFail" | ||
#define ACTION_REASON_REPEAT_NO_TIMES 7 //!< "RepeatNoTimes" | ||
|
||
} | ||
} | ||
//! 保存 1000 以内供 Action 自用,使用者自定义的 Reason 需 >= 1000 | ||
|
||
#endif //TBOX_FLOW_ACTION_REASON_H_20240316 | ||
#endif //TBOX_FLOW_ACTION_REASON_H_20240317 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.