summaryrefslogtreecommitdiff
path: root/navit/messages.c
diff options
context:
space:
mode:
authortinloaf <tinloaf@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-03-28 15:28:56 +0000
committertinloaf <tinloaf@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-03-28 15:28:56 +0000
commit95ee7e85772b939c96223e659efa8692a1e02c00 (patch)
treee2d1ffc57950708dfbacce15c6d5ce67b70b1915 /navit/messages.c
parent3e43bc8ff8fbba833828122d1082d0d33c301fc0 (diff)
downloadnavit-95ee7e85772b939c96223e659efa8692a1e02c00.tar.gz
Fix:Core:Don't busyloop
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2173 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/messages.c')
-rw-r--r--navit/messages.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/navit/messages.c b/navit/messages.c
index 5904795aa..141070979 100644
--- a/navit/messages.c
+++ b/navit/messages.c
@@ -30,7 +30,7 @@ struct messagelist {
int maxage; /**< Maximum age of messages */
int maxnum; /**< Maximum number of messages */
struct callback *msg_cleanup_cb; /**< Callback to clean up the messages */
- struct event_idle *msg_cleanup_ev; /**< Idle event to clean up the messages */
+ struct event_timeout *msg_cleanup_to; /**< Idle event to clean up the messages */
};
int
@@ -145,7 +145,7 @@ void
messagelist_init(struct messagelist *this_)
{
this_->msg_cleanup_cb = callback_new_1(callback_cast(message_cleanup), this_);
- this_->msg_cleanup_ev = event_add_idle(150, this_->msg_cleanup_cb);
+ this_->msg_cleanup_to = event_add_timeout(1000, 1, this_->msg_cleanup_cb);
}
struct message