#include <tzplatform_config.h>
typedef enum {
- AMD_PRIORITY_90 = -90,
- AMD_PRIORITY_80 = -80,
- AMD_PRIORITY_70 = -70
+ AMD_PRIORITY_MAX = G_PRIORITY_HIGH,
+ AMD_PRIORITY_90 = G_PRIORITY_HIGH + 10,
+ AMD_PRIORITY_80 = G_PRIORITY_HIGH + 20,
+ AMD_PRIORITY_70 = G_PRIORITY_HIGH + 30
} amd_priority_e;
#ifdef __cplusplus
#ifndef __AMD_API_UTIL_H__
#define __AMD_API_UTIL_H__
+#include <glib.h>
#include <stdbool.h>
typedef enum {
- AMD_API_PRIORITY_80 = -80,
- AMD_API_PRIORITY_70 = -70
+ AMD_API_PRIORITY_MAX = G_PRIORITY_HIGH,
+ AMD_API_PRIORITY_90 = G_PRIORITY_HIGH + 10,
+ AMD_API_PRIORITY_80 = G_PRIORITY_HIGH + 20,
+ AMD_API_PRIORITY_70 = G_PRIORITY_HIGH + 30
} amd_api_priority_e;
#ifdef __cplusplus
}
if (__file_monitor.wm_ready && __file_monitor.wl_ready) {
- g_idle_add_full(G_PRIORITY_HIGH, __init_wl, NULL, NULL);
+ g_idle_add_full(AMD_API_PRIORITY_MAX, __init_wl, NULL, NULL);
__file_monitor.handle = NULL;
return false;
}
}
if (__file_monitor.wl_ready && __file_monitor.wm_ready) {
- g_idle_add_full(G_PRIORITY_HIGH, __init_wl, NULL, NULL);
+ g_idle_add_full(AMD_API_PRIORITY_MAX, __init_wl, NULL, NULL);
return 0;
}
{
_D("wayland core init");
- g_idle_add_full(G_PRIORITY_HIGH, __idle_cb, NULL, NULL);
+ g_idle_add_full(AMD_API_PRIORITY_MAX, __idle_cb, NULL, NULL);
return 0;
}