auto-sync

This commit is contained in:
rusEfi 2016-02-11 17:03:09 -05:00
parent 64cefebd52
commit 604c1079af
2 changed files with 11 additions and 0 deletions

View File

@ -55,6 +55,8 @@
} }
*/ */
#if !EFI_UNIT_TEST
void chVTSetAny(virtual_timer_t *vtp, systime_t time, vtfunc_t vtfunc, void *par) { void chVTSetAny(virtual_timer_t *vtp, systime_t time, vtfunc_t vtfunc, void *par) {
bool wasLocked = lockAnyContext(); bool wasLocked = lockAnyContext();
@ -71,3 +73,6 @@ void chVTSetAny(virtual_timer_t *vtp, systime_t time, vtfunc_t vtfunc, void *par
unlockAnyContext(); unlockAnyContext();
} }
} }
#endif

View File

@ -10,6 +10,9 @@
#define RFIUTIL_H_ #define RFIUTIL_H_
#include "global.h" #include "global.h"
#if !EFI_UNIT_TEST
#include "histogram.h" #include "histogram.h"
#define isLocked() (dbg_lock_cnt > 0) #define isLocked() (dbg_lock_cnt > 0)
@ -34,4 +37,7 @@ void chVTSetAny(virtual_timer_t *vtp, systime_t time, vtfunc_t vtfunc, void *par
void printHistogram(Logging *logging, histogram_s *histogram); void printHistogram(Logging *logging, histogram_s *histogram);
#endif /* __cplusplus */ #endif /* __cplusplus */
#endif /* EFI_UNIT_TEST */
#endif /* RFIUTIL_H_ */ #endif /* RFIUTIL_H_ */