Keystore 2.0: Initialize thread pool.
Test: N/A
Bug: 173546039
Change-Id: I3b5d6732c5f4aea973d76bc6fabfdb2979e3619b
diff --git a/keystore2/src/keystore2_main.rs b/keystore2/src/keystore2_main.rs
index dea0a93..ab00794 100644
--- a/keystore2/src/keystore2_main.rs
+++ b/keystore2/src/keystore2_main.rs
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-//! This crate implements Keystore 2.0.
+//! This crate implements the Keystore 2.0 service entry point.
use binder::Interface;
use keystore2::service::KeystoreService;
@@ -53,7 +53,10 @@
});
info!("Successfully registered Keystore 2.0 service.");
- info!("Joining threadpool now.");
+ info!("Starting thread pool now.");
+ binder::ProcessState::start_thread_pool();
+
+ info!("Joining thread pool now.");
binder::ProcessState::join_thread_pool();
}