🐞 fix(src, gtest, example): 解决hos_delete_fd引起的多线程安全问题

This commit is contained in:
彭宣正
2021-07-12 11:09:53 +08:00
parent c7c6f5b25f
commit 0c27c779a6
15 changed files with 148 additions and 588 deletions

View File

@@ -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);