• Hai Bi's avatar
    [Reboot] Modify the AdminSyncPtr to AdminPtr · 6825e4f5
    Hai Bi authored
    Using SyncPtr causes a deadlock since the caller is waiting for the
    call to return, while the reboot component may not return right
    away, so caller is blocked and cannot process any notification during
    the time. Changed to AdminPtr to make caller still active during
    reboot.
    
    Bug: b/163045578
    Test: local test and updated unit test
    Change-Id: Icf2644191ef5113b8ff9f7de73feb0765b4ea2e8
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2350741
    Auto-Submit: Hai Bi <bihai@google.com>
    Commit-Queue: Hai Bi <bihai@google.com>
    Reviewed-by: default avatarMichael Spang <spang@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#797852}
    6825e4f5
reboot_fuchsia_test.cc 8.63 KB