732143c8Add on Mar 18History
FilesLast commitLast update
1 year ago
1 year ago
1 year ago
1 year ago
8 months ago
8 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
README

Using TSan to Detect Thread Issues

Overview

This sample accompanies the "Using TSan to Detect Thread Issues" best practice.

How to Use

N/A

Project Directory

├──entry/src/main/ets 
│  ├──cpp 
│  │  └──UseTSANToDetectThreadingIssues.cpp       // Detection sample code 
│  ├──entryability 
│  │  └──EntryAbility.ets                         // Entry ability 
│  ├──entrybackupability 
│  │  └──EntryBackupAbility.ets                   // Data backup and restoration 
│  └──pages 
│     ├──UseTSANToDetectThreadingIssues.ets       // Sample page 
│     └──Index.ets                                // Home page 
└──entry/src/main/resources                       // App resources

How to Implement

  1. Use TSan to detect threads.

Required Permissions

N/A

Constraints

  1. This sample is only supported on Huawei phones running standard systems.
  2. The HarmonyOS version must be HarmonyOS 5.0.5 Release or later.
  3. The DevEco Studio version must be DevEco Studio 5.0.5 Release or later.
  4. The HarmonyOS SDK version must be HarmonyOS 5.0.5 Release SDK or later.