| Files | Last commit | Last 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 |
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
- Use TSan to detect threads.
Required Permissions
N/A
Constraints
- This sample is only supported on Huawei phones running standard systems.
- The HarmonyOS version must be HarmonyOS 5.0.5 Release or later.
- The DevEco Studio version must be DevEco Studio 5.0.5 Release or later.
- The HarmonyOS SDK version must be HarmonyOS 5.0.5 Release SDK or later.