-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pillar/agentlog: Add mutex locks for safe PSI data handling and test …
…synchronization. This commit introduces two mutex locks to ensure thread-safe handling of PSI data and synchronization during testing. The first lock (PsiMutex) is added to protect access to the PSI files, preventing race conditions between the PSI data producer in the tests and the consumer in memprofile. The second lock (psiProducerMutex) ensures that only one PSI data producer runs during tests, avoiding conflicts and ensuring consistent test results. Signed-off-by: Nikolay Martyanov <nikolay@zededa.com>
- Loading branch information
1 parent
069cdaa
commit c54e898
Showing
2 changed files
with
50 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters