#include <app.h>
#include <FApp.h>
+#include "dahelper.h"
using namespace Tizen::App;
#define UNKNOWN_USER_EVENT 5873
App* self = App::GetInstance();
if(self != NULL)
{
+ PRINTMSG("EXIT self");
self->Terminate();
// send unknown user event to main thread
// because this cause that main thread execute terminating routine without block
}
else
{
+ PRINTMSG("EXIT self - efl_exit >");
app_efl_exit();
+ if (app_efl_main_flg == 0) {
+ PRINTMSG("no app_efl_main detected, terminate by exit(0)");
+ //sleep for flush message to manager
+ sleep(1);
+ exit(0);
+ }
+ PRINTMSG("EXIT self - efl_exit <");
}
}
extern "C"{
#endif
+extern int app_efl_main_flg;
+
#define MAX_PATH_LENGTH 256
#define MAX_STACK_DEPTH 128
#define TRIM_STACK_DEPTH 2
Ecore_Event_Handler* handler;
int ret;
+ //set app_efl flag to determinate termination way for app
+ app_efl_main_flg = 1;
+
GET_REAL_FUNC(app_efl_main, LIBCAPI_APPFW_APPLICATION);
probeBlockStart();