Commit 4a4ddc4
committed
[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 b80c7f5 commit 4a4ddc4
1 file changed
+4
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
526 | 526 | | |
527 | 527 | | |
528 | 528 | | |
| 529 | + | |
529 | 530 | | |
530 | 531 | | |
531 | 532 | | |
| |||
1350 | 1351 | | |
1351 | 1352 | | |
1352 | 1353 | | |
1353 | | - | |
1354 | | - | |
1355 | | - | |
1356 | 1354 | | |
1357 | | - | |
1358 | | - | |
1359 | | - | |
1360 | | - | |
1361 | | - | |
1362 | | - | |
1363 | | - | |
1364 | | - | |
1365 | | - | |
1366 | | - | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
1367 | 1358 | | |
1368 | 1359 | | |
1369 | 1360 | | |
| |||
0 commit comments