TSG-14930 TFE支持发送控制报文给SAPP
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user