Commit 961aef0
committed
[tsmeta.bbclass] Add lockfiles when writing and reading from intermediate json file to avoid race conditions
There are multiple tasks which generate intermediate Json files. A race condition occurs if the same file is being read by a task while its still being edited.
To fix this condition bitbake's file locking mechanism is used in `tsmeta_read_json` and `tsmeta_write_json` functions to lock a file being accessed by a task
until that task is completed1 parent 059dfcb commit 961aef0
1 file changed
+12
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
113 | 117 | | |
114 | 118 | | |
115 | 119 | | |
116 | 120 | | |
117 | 121 | | |
118 | 122 | | |
119 | 123 | | |
120 | | - | |
121 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
122 | 130 | | |
123 | 131 | | |
124 | 132 | | |
| |||
479 | 487 | | |
480 | 488 | | |
481 | 489 | | |
482 | | - | |
483 | 490 | | |
484 | 491 | | |
485 | 492 | | |
| |||
0 commit comments