Commit 418f020
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 <figueroa.moises@ibm.com>1 parent 46465a5 commit 418f020
3 files changed
+20
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
| |||
136 | 137 | | |
137 | 138 | | |
138 | 139 | | |
| 140 | + | |
139 | 141 | | |
140 | 142 | | |
141 | 143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
106 | 108 | | |
107 | 109 | | |
108 | 110 | | |
| |||
118 | 120 | | |
119 | 121 | | |
120 | 122 | | |
121 | | - | |
122 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
123 | 126 | | |
124 | 127 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
146 | 147 | | |
147 | 148 | | |
148 | 149 | | |
| |||
392 | 393 | | |
393 | 394 | | |
394 | 395 | | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
395 | 403 | | |
396 | 404 | | |
397 | 405 | | |
| |||
426 | 434 | | |
427 | 435 | | |
428 | 436 | | |
| 437 | + | |
| 438 | + | |
429 | 439 | | |
430 | 440 | | |
431 | 441 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| |||
0 commit comments