diff options
| author | Steve Paik <spaik@google.com> | 2018-01-03 20:27:58 -0800 |
|---|---|---|
| committer | Steve Paik <spaik@google.com> | 2018-01-19 12:30:39 -0800 |
| commit | 10b149f18f1751e98c750b91e11adb51fb7bb836 (patch) | |
| tree | 13118618e524bea94c7a21517f3a32e82b219ecf /libutils/Unicode.cpp | |
| parent | 765516ecafced7f7cb82c992dee810583890ea2d (diff) | |
Add force_suspend function
This CL implements a simple force_suspend(). This function takes a
timeoutMs argument that is currently ignored. It also uses a two-stage
init process that spawns the suspend_thread when autosuspend is in use.
Follow-up CLs will:
- Implement file locking to prevent multiple libsuspend instances from
starting multiple suspend threads in the system.
- Fully implement timout for force_suspend.
- Integrate force_suspend with suspend_thred.
Bug: 70669809
Test: autosuspend still works
Change-Id: I6b2c72d0c61d1bec6db0f0b28481ffe0e20ec615
Diffstat (limited to 'libutils/Unicode.cpp')
0 files changed, 0 insertions, 0 deletions
