phonemgr r283 - in trunk: . libgsm



Author: hadess
Date: Tue Mar 18 10:59:15 2008
New Revision: 283
URL: http://svn.gnome.org/viewvc/phonemgr?rev=283&view=rev

Log:
2008-03-18  Bastien Nocera  <hadess hadess net>

	* libgsm/phonemgr-listener.c
	(phonemgr_listener_sms_notification_soft_poll):
	Spin less, fix some ms/microseconds confusion



Modified:
   trunk/ChangeLog
   trunk/libgsm/phonemgr-listener.c

Modified: trunk/libgsm/phonemgr-listener.c
==============================================================================
--- trunk/libgsm/phonemgr-listener.c	(original)
+++ trunk/libgsm/phonemgr-listener.c	Tue Mar 18 10:59:15 2008
@@ -33,8 +33,8 @@
 #include "phonemgr-utils.h"
 
 /* #define DUMMY 1 */
-#define POLL_TIMEOUT 300
-#define TRYLOCK_TIMEOUT 50
+#define POLL_TIMEOUT 300 * 1000
+#define TRYLOCK_TIMEOUT 50 * 1000
 
 #define CHECK_EXIT { if (l->terminated != FALSE) { g_mutex_unlock (l->mutex); goto exit_thread; } }
 
@@ -606,7 +606,7 @@
 static void
 phonemgr_listener_sms_notification_soft_poll (PhonemgrListener *l)
 {
-	gn_sm_loop (1, &l->phone_state->state);
+	gn_sm_loop (10, &l->phone_state->state);
 	/* Some phones may not be able to notify us, thus we give
 	 * lowlevel chance to poll them */
 	gn_sm_functions (GN_OP_PollSMS, &l->phone_state->data, &l->phone_state->state);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]