modified for rtems

This commit is contained in:
gengyue
2019-04-24 20:10:36 +08:00
32 changed files with 756 additions and 942 deletions
+3 -1
View File
@@ -83,8 +83,10 @@ static pthread_mutex_t timerLock;
#endif /* __LINUX__ */
#ifdef _MG_USE_BETTER_TIMER
#ifdef _MGRM_THREADS
#include <sys/times.h>
static clock_t g_timer_started;
#endif
static clock_t g_last_tick;
#endif
@@ -95,7 +97,7 @@ static void __mg_timer_action (void *data)
SHAREDRES_TIMER_COUNTER += 1;
#else
#if defined(__uClinux__) && defined(_MGRM_STANDALONE)
#if defined(_MGRM_STANDALONE)
__mg_timer_counter += 10;
#else
# ifdef _MG_USE_BETTER_TIMER