#define DEFAULT_USER_UID 5001 /* owner */
-#define MC_MILLISEC_SLEEP(msec) \
- do { \
- if (msec) { \
- long sec_t = 0; \
- long nsec_t = 0; \
- long cal_time = msec * 1000000; \
- sec_t = cal_time / 1000000000; \
- nsec_t = cal_time % 1000000000; \
- struct timespec reqtime; \
- reqtime.tv_sec = sec_t; \
- reqtime.tv_nsec = nsec_t; \
- nanosleep(&reqtime, NULL); \
- } \
- } while (0)
-
#define MC_BIT64_UNSET 0x0000000000000000
#define MC_BIT64_SET 0x0000000000000001
#define MC_SHIFT_IS_OK(x) ((x < 32) ? TRUE : FALSE)
Name: capi-media-controller
Summary: A media controller library in Tizen Native API
-Version: 0.2.41
+Version: 0.2.42
Release: 1
Group: Multimedia/API
License: Apache-2.0
mc_retvm_if(ret != MEDIA_CONTROLLER_ERROR_NONE, ret, "Fail to __activate_service");
while (retry_count++ < MAX_WAIT_COUNT) {
- MC_MILLISEC_SLEEP(200);
+ usleep(10000);
mc_error("[No-Error] retry_count [%d]", retry_count);
ret = _mc_ipc_send_message_to_server(MC_MSG_SERVICE_LAUNCH, priv_type, "launch");
mc_retvm_if(ret == MEDIA_CONTROLLER_ERROR_NONE, ret, "service is running!");
static int __mc_db_busy_handler(void *pData, int count)
{
- MC_MILLISEC_SLEEP(50);
+ usleep(50000);
mc_error("[No-Error]__mc_db_busy_handler called : %d", count);
break;
}
mc_debug("%d", i);
- MC_MILLISEC_SLEEP(50);
+ usleep(50000);
}
if (bind_success == false) {