projects
/
profile
/
ivi
/
automotive-message-broker.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
bleh
[profile/ivi/automotive-message-broker.git]
/
ambd
/
glibmainloop.cpp
1
#include "glibmainloop.h"
2
#include <glib.h>
3
#include <stdlib.h>
4
5
GlibMainLoop::GlibMainLoop(int argc, char **argv)
6
:IMainLoop(argc,argv)
7
{
8
mainLoop = g_main_loop_new(NULL, false);
9
}
10
11
GlibMainLoop::~GlibMainLoop()
12
{
13
g_main_loop_quit(mainLoop);
14
exit(0);
15
}
16
17
int GlibMainLoop::exec()
18
{
19
g_main_loop_run(mainLoop);
20
}
21