Commit 472be75
[single] Refactor: Replace busy waiting with a condition variable in close
Replaced the busy waiting loop (g_usleep) in ml_single_close with `g_cond_wait`
to improve CPU efficiency.
- Modified to broadcast a signal immediately after completing an invoke tasek.
- Updated to wait on the condition variable instead of polling the `invoking`
state every 1ms.
Signed-off-by: hyunil park <hyunil46.park@samsung.com>1 parent 85df469 commit 472be75
1 file changed
+5
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
564 | 564 | | |
565 | 565 | | |
566 | 566 | | |
| 567 | + | |
567 | 568 | | |
568 | 569 | | |
569 | 570 | | |
| |||
1344 | 1345 | | |
1345 | 1346 | | |
1346 | 1347 | | |
1347 | | - | |
1348 | 1348 | | |
1349 | 1349 | | |
1350 | 1350 | | |
| |||
1359 | 1359 | | |
1360 | 1360 | | |
1361 | 1361 | | |
1362 | | - | |
1363 | | - | |
1364 | | - | |
1365 | 1362 | | |
1366 | | - | |
1367 | | - | |
1368 | | - | |
1369 | | - | |
1370 | | - | |
1371 | | - | |
1372 | | - | |
1373 | | - | |
1374 | | - | |
1375 | | - | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
1376 | 1366 | | |
| 1367 | + | |
1377 | 1368 | | |
1378 | 1369 | | |
1379 | 1370 | | |
| |||
0 commit comments