4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
8 * Jaewon Lim <jaewon81.lim@samsung.com>
9 * Woojin Jung <woojin2.jung@samsung.com>
10 * Juyoung Kim <j0.kim@samsung.com>
12 * This library is free software; you can redistribute it and/or modify it under
13 * the terms of the GNU Lesser General Public License as published by the
14 * Free Software Foundation; either version 2.1 of the License, or (at your option)
17 * This library is distributed in the hope that it will be useful, but WITHOUT ANY
18 * WARRANTY; without even the implied warranty of MERCHANTABILITY or
19 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
20 * License for more details.
22 * You should have received a copy of the GNU Lesser General Public License
23 * along with this library; if not, write to the Free Software Foundation, Inc., 51
24 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
34 using namespace Tizen::App;
36 #define UNKNOWN_USER_EVENT 5873
42 void application_exit()
44 App* self = App::GetInstance();
47 PRINTMSG("EXIT self");
49 // send unknown user event to main thread
50 // because this cause that main thread execute terminating routine without block
51 self->SendUserEvent(UNKNOWN_USER_EVENT, NULL);
55 PRINTMSG("EXIT self - efl_exit >");
57 if (app_efl_main_flg == 0) {
58 PRINTMSG("no app_efl_main detected, terminate by exit(0)");
59 //sleep for flush message to manager
63 PRINTMSG("EXIT self - efl_exit <");