diff options
| author | luwenpeng <[email protected]> | 2021-04-21 11:51:30 +0800 |
|---|---|---|
| committer | luwenpeng <[email protected]> | 2021-04-21 11:51:30 +0800 |
| commit | 1c37ae746df4e8cb4cb242af5a9a2ce4a95a0d21 (patch) | |
| tree | e09d271cfa9d632c1659ec21c4246fc4273c13d3 /common/include/tfe_utils.h | |
| parent | 3e020b9e28e9126f2544557705c2006047053d36 (diff) | |
TSG-5978 TFE 与 KNI 保活的 watchdog 线程增加对 tfe worker 线程健康状态检测的功能develop-4.4
Diffstat (limited to 'common/include/tfe_utils.h')
| -rw-r--r-- | common/include/tfe_utils.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/common/include/tfe_utils.h b/common/include/tfe_utils.h index c059c64..937b0d3 100644 --- a/common/include/tfe_utils.h +++ b/common/include/tfe_utils.h @@ -94,8 +94,7 @@ do { if(!(condition)) { TFE_LOG_ERROR(g_default_logger, fmt, ##__VA_ARGS__); abo #define ATOMIC_READ(x) __atomic_fetch_add(x,0,__ATOMIC_RELAXED) #define ATOMIC_ADD(x, y) __atomic_fetch_add(x,y,__ATOMIC_RELAXED) #define ATOMIC_ZERO(x) __atomic_fetch_and(x,0,__ATOMIC_RELAXED) - - +#define ATOMIC_SET(x,y) __atomic_store_n(x,y,__ATOMIC_RELAXED) #ifndef MAX #define MAX(a, b) (((a) > (b)) ? (a) : (b)) #endif |
