Commit 14ee4b2
Fix detach race condition (#43)
* Fix detach race condition
pxThread->xAttr.usSchedPriorityDetachState may be changed by
pthread_detach(). Suspend scheduler to prevent race condition.
Signed-off-by: wangfei_chen <[email protected]>
* Fix compiler warnings
---------
Signed-off-by: wangfei_chen <[email protected]>
Co-authored-by: wangfei_chen <[email protected]>
Co-authored-by: Rahul Kar <[email protected]>1 parent 1bb2a09 commit 14ee4b2
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
104 | 106 | | |
105 | 107 | | |
106 | 108 | | |
107 | 109 | | |
| 110 | + | |
108 | 111 | | |
109 | 112 | | |
110 | 113 | | |
111 | 114 | | |
112 | 115 | | |
113 | 116 | | |
114 | 117 | | |
| 118 | + | |
115 | 119 | | |
116 | 120 | | |
117 | 121 | | |
| |||
359 | 363 | | |
360 | 364 | | |
361 | 365 | | |
362 | | - | |
| 366 | + | |
363 | 367 | | |
364 | 368 | | |
365 | 369 | | |
| |||
467 | 471 | | |
468 | 472 | | |
469 | 473 | | |
470 | | - | |
| 474 | + | |
471 | 475 | | |
472 | 476 | | |
473 | 477 | | |
| |||
526 | 530 | | |
527 | 531 | | |
528 | 532 | | |
529 | | - | |
| 533 | + | |
530 | 534 | | |
531 | 535 | | |
532 | 536 | | |
| |||
0 commit comments