-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Recursive protection to _take_dump() (#412)
* added recursive check for DRIVE_DUMP error * Test commit for multithreading with pthread * Added join() to the pthread and change lock() for unlock() * Removed the destroy() functions for the mutex and setted the mutex to be global * Accepted new error messaages * Added recusivity error message * Fixed identation issues * Removed the unnecessary thead safety * added mutex for thread protection * test commit for mutex * test commit for mutex * test commit for mutex * test commit for mutex * test commit for mutex * test commit for mutex * test commit for mutex * test commit for mutex * test commit for mutex * mutex added with function to start it * mutex added with function to start it * Added recursive counter to sg_data structure and removed the mutex * A sum operator is changed to a binary operator OR _parse_logPage * Changed datatype from uint16_t to uint8_t from cast * Wrong variable call fixed. * Added null check to recursive_counter * Implemented some optimizations to _parse_logPage and changed _take_dump to work with priv->recursive_counter * Identation fixed. * Changed the conditions flow to the original version * changed datatype to recursive_counter --------- Co-authored-by: moisesFigueroa <[email protected]>
- Loading branch information
1 parent
46465a5
commit 418f020
Showing
3 changed files
with
20 additions
and
7 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
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