diff options
| author | wangmenglan <[email protected]> | 2023-05-09 22:12:38 +0800 |
|---|---|---|
| committer | wangmenglan <[email protected]> | 2023-05-09 22:13:20 +0800 |
| commit | 542f4cbdfa6f58dd8a07e35663116a08f54170bd (patch) | |
| tree | a23444151ef7dbef555d3ed213cc1465d4843d88 /common/src/tfe_cmsg.cpp | |
| parent | fecc023418f9e659b46a47e7374c956080a9db67 (diff) | |
TSG-14930 TFE支持发送控制报文给SAPPv4.8.10-20230509
Diffstat (limited to 'common/src/tfe_cmsg.cpp')
| -rw-r--r-- | common/src/tfe_cmsg.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/src/tfe_cmsg.cpp b/common/src/tfe_cmsg.cpp index d16705b..6f9d2b6 100644 --- a/common/src/tfe_cmsg.cpp +++ b/common/src/tfe_cmsg.cpp @@ -25,7 +25,7 @@ struct tfe_cmsg_tlv struct tfe_cmsg { uint8_t flag; - uint8_t ref; + uint8_t ref; pthread_rwlock_t rwlock; uint16_t nr_tlvs; struct tfe_cmsg_tlv* tlvs[TFE_CMSG_TLV_NR_MAX]; @@ -47,8 +47,8 @@ struct tfe_cmsg* tfe_cmsg_init() pthread_rwlock_init(&(cmsg->rwlock), NULL); ATOMIC_ZERO(&cmsg->flag); - ATOMIC_ZERO(&cmsg->ref); - ATOMIC_INC(&cmsg->ref); + ATOMIC_ZERO(&cmsg->ref); + ATOMIC_INC(&cmsg->ref); return cmsg; } @@ -73,7 +73,7 @@ void tfe_cmsg_dup(struct tfe_cmsg *cmsg) { if (cmsg == NULL) return; - ATOMIC_INC(&cmsg->ref); + ATOMIC_INC(&cmsg->ref); } void tfe_cmsg_set_flag(struct tfe_cmsg *cmsg, uint8_t flag) |
