Adding --disable-notification-reordering option
Adding a configure flag to disable GENA notification reordering as even with an imillisleep(1), this mechanism consumes too much CPU on embedded devices when there is a burst of notifications. (cherry picked from commit c73d870f46a9be94bc0e7b898dba4e480348933e)
This commit is contained in:
parent
ee8e52ea4a
commit
af345c1d2c
@ -221,6 +221,14 @@ Version 1.8.0
|
||||
Version 1.6.7
|
||||
*******************************************************************************
|
||||
|
||||
2010-10-01 Fabrice Fontaine <fabrice.fontaine(at)orange-ftgroup.com>
|
||||
|
||||
Adding --disable-notification-reordering option
|
||||
|
||||
Adding a configure flag to disable GENA notification reordering as even
|
||||
with an imillisleep(1), this mechanism consumes too much CPU on embedded
|
||||
devices when there is a burst of notifications.
|
||||
|
||||
2010-09-30 Fabrice Fontaine <fabrice.fontaine(at)orange-ftgroup.com>
|
||||
|
||||
Bug fix when there is no service in embedded devices
|
||||
|
@ -266,6 +266,11 @@ if test "x$enable_ipv6" = xyes ; then
|
||||
AC_DEFINE(UPNP_ENABLE_IPV6, 1, [see upnpconfig.h])
|
||||
fi
|
||||
|
||||
RT_BOOL_ARG_ENABLE([notification_reordering], [yes], [GENA notification reordering in gena_device.c])
|
||||
if test "x$enable_notification_reordering" = xyes ; then
|
||||
AC_DEFINE(UPNP_ENABLE_NOTIFICATION_REORDERING, 1, [see upnpconfig.h])
|
||||
fi
|
||||
|
||||
|
||||
RT_BOOL_ARG_ENABLE([samples], [yes], [compilation of upnp/sample/ code])
|
||||
|
||||
|
@ -365,6 +365,8 @@ static void genaNotifyThread(
|
||||
HandleUnlock();
|
||||
return;
|
||||
}
|
||||
|
||||
#ifdef UPNP_ENABLE_NOTIFICATION_REORDERING
|
||||
//If the event is out of order push it back to the job queue
|
||||
if( in->eventKey != sub->ToSendEventKey ) {
|
||||
|
||||
@ -383,6 +385,7 @@ static void genaNotifyThread(
|
||||
HandleUnlock();
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
HandleUnlock();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user