[haiku-commits] r42014 - haiku/branches/developer/bonefish/signals/headers/private/system

  • From: ingo_weinhold@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 7 Jun 2011 19:49:58 +0200 (CEST)

Author: bonefish
Date: 2011-06-07 19:49:58 +0200 (Tue, 07 Jun 2011)
New Revision: 42014
Changeset: https://dev.haiku-os.org/changeset/42014

Modified:
   
haiku/branches/developer/bonefish/signals/headers/private/system/user_timer_defs.h
Log:
Bumped MAX_USER_TIMER_OVERRUN_COUNT to INT_MAX.


Modified: 
haiku/branches/developer/bonefish/signals/headers/private/system/user_timer_defs.h
===================================================================
--- 
haiku/branches/developer/bonefish/signals/headers/private/system/user_timer_defs.h
  2011-06-07 17:49:30 UTC (rev 42013)
+++ 
haiku/branches/developer/bonefish/signals/headers/private/system/user_timer_defs.h
  2011-06-07 17:49:58 UTC (rev 42014)
@@ -18,9 +18,13 @@
 // limits
 #define MAX_USER_TIMERS_PER_TEAM               _POSIX_TIMER_MAX
        // maximum numbers of user-defined user timers (timer_create())
-#define MAX_USER_TIMER_OVERRUN_COUNT   _POSIX_DELAYTIMER_MAX
+#define MAX_USER_TIMER_OVERRUN_COUNT   INT_MAX
        // cap value of a timer's overrun counter
 
+#if MAX_USER_TIMER_OVERRUN_COUNT < _POSIX_DELAYTIMER_MAX
+#      error "MAX_USER_TIMER_OVERRUN_COUNT < _POSIX_DELAYTIMER_MAX"
+#endif
+
 #define USER_TIMER_REAL_TIME_ID                                0
        // predefined ID for the real time timer
 #define USER_TIMER_TEAM_TOTAL_TIME_ID          1


Other related posts:

  • » [haiku-commits] r42014 - haiku/branches/developer/bonefish/signals/headers/private/system - ingo_weinhold