#include <sys/types.h>
#include <malloc.h>
#include <cpu-boosting.h>
+#include <unistd.h>
#include "media-util.h"
#include "media-common-utils.h"
resource_pid_t stResource = {};
stResource.pid = getpid();
if(0 != resource_set_cpu_boosting(stResource, CPU_BOOSTING_LEVEL_MEDIUM, (cpu_boosting_flag_e)0, -1)) {
- MS_DBG_ERR("Start CPU Boost 0 Failed[%d]", stResource.pid);
+ MS_DBG_ERR("[No-error] Start CPU Boost 0 Failed[%d]", stResource.pid);
} else {
- MS_DBG_ERR("Start CPU Boost 0, pid[%d]", stResource.pid);
+ MS_DBG_ERR("[No-error] Start CPU Boost 0, pid[%d]", stResource.pid);
}
#ifdef _USE_TVPD_MODE
db_thread = g_thread_new("db_thread", ms_db_thread, NULL);
/*clear previous data of sdcard on media database and check db status for updating*/
+ MS_DBG_INFO("wait db thread start");
while (!ms_db_get_thread_status()) {
- MS_DBG_ERR("wait db thread");
- sleep(1);
+ usleep(10000);
}
+ MS_DBG_INFO("db thread ready");
/* update media DB */
__ms_check_mediadb();