From 8a68c31ffc98bda5abd3bd03f49727c7400bbba8 Mon Sep 17 00:00:00 2001 From: bigbiff bigbiff Date: Sun, 10 Feb 2013 14:28:30 -0500 Subject: This adds a 60 second screen timeout for TWRP. Might consider making this configurable in the future. Will also set overlay to lockscreen so we don't have inadvetent screen selections. Touching the screen will bring the display back up. add back check script for poweroff move diff time function to twrp-functions.cpp make sure we chmod after copy_file add read_file and write_file functions to twrp-functions.cpp make single thread try to force update screen add forceRender drop caches after tar processing Change-Id: I3c5c509dd39dbb05451bbfe5d8b56d53c90d8d1b --- twrpTar.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'twrpTar.cpp') diff --git a/twrpTar.cpp b/twrpTar.cpp index 263684995..43448672c 100644 --- a/twrpTar.cpp +++ b/twrpTar.cpp @@ -57,6 +57,7 @@ int twrpTar::createTarGZThread() { if(pthread_join(thread, NULL)) { return -1; } + TWFunc::drop_caches(); return 0; } @@ -68,6 +69,7 @@ int twrpTar::createTarThread() { if(pthread_join(thread, NULL)) { return -1; } + TWFunc::drop_caches(); return 0; } @@ -79,6 +81,7 @@ int twrpTar::extractTarThread() { if(pthread_join(thread, NULL)) { return -1; } + TWFunc::drop_caches(); return 0; } @@ -90,6 +93,7 @@ int twrpTar::splitArchiveThread() { if(pthread_join(thread, NULL)) { return -1; } + TWFunc::drop_caches(); return 0; } -- cgit v1.2.3