add mutex protection for adapter agent

This commit is contained in:
Wang_Weigen
2021-11-22 17:50:27 +08:00
parent 5a8b6d79aa
commit 9d970e7832
5 changed files with 183 additions and 96 deletions
+1 -1
View File
@@ -212,7 +212,7 @@ void* server_thread(void* p)
int ret = 0;
printf("pthread = %d\n",fd);
sleep(10);
// sleep(5);
while(1)
{
memset(&data, 0 , sizeof(struct ota_data));