summaryrefslogtreecommitdiff
path: root/gtest/CheckHosClient.cpp
diff options
context:
space:
mode:
author彭宣正 <[email protected]>2021-07-12 11:09:53 +0800
committer彭宣正 <[email protected]>2021-07-12 11:09:53 +0800
commit0c27c779a62d2abed5e56bbe2cbd6c1cbdc652e7 (patch)
treeea68e544aa76d8b99aa733db8c6edda6af7dcf21 /gtest/CheckHosClient.cpp
parentc7c6f5b25f02f2532e913182ecad864da59144fe (diff)
🐞 fix(src, gtest, example): 解决hos_delete_fd引起的多线程安全问题v2.0.2
Diffstat (limited to 'gtest/CheckHosClient.cpp')
-rw-r--r--gtest/CheckHosClient.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtest/CheckHosClient.cpp b/gtest/CheckHosClient.cpp
index 354752cc..75787eed 100644
--- a/gtest/CheckHosClient.cpp
+++ b/gtest/CheckHosClient.cpp
@@ -61,10 +61,10 @@ void CheckStructHosFunc(hos_func_thread_t *actual, hos_func_thread_t *expect, in
{
//EXPECT_EQ(actual->fd_thread, expect->fd_thread);
EXPECT_EQ(actual->fd_thread_status, expect->fd_thread_status);
- if (actual->fs2_info[0].reserved != NULL)
+ if (actual->fs2_info.reserved != NULL)
{
- CheckStructFs2DataInfo((data_info_t *)actual->fs2_info[0].reserved,
- (data_info_t *)expect->fs2_info[0].reserved, thread_num);
+ CheckStructFs2DataInfo((data_info_t *)actual->fs2_info.reserved,
+ (data_info_t *)expect->fs2_info.reserved, thread_num);
}
EXPECT_EQ(actual->fs2_status, expect->fs2_status);
//EXPECT_EQ(actual->fs2_thread, expect->fs2_thread);