Introduce the portSOFTWARE_BARRIER macro which thus far is only used by the Win32 demo to hold execution up in case a simulated interrupt is executing simultaneously. That should never happen as all threads should execute on the same core, but we have had numerous reports that this and other Win32 port changes we have made fixed these issues - although we have not been able to replicate them ourselves.

This commit is contained in:
Richard Barry 2020-01-23 23:49:24 +00:00
parent 18f87e8c33
commit 2415dc26b0
4 changed files with 21 additions and 2 deletions

View file

@ -257,6 +257,10 @@ hold explicit before calling the code. */
#define portMEMORY_BARRIER()
#endif
#ifndef portSOFTWARE_BARRIER
#define portSOFTWARE_BARRIER()
#endif
/* The timers module relies on xTaskGetSchedulerState(). */
#if configUSE_TIMERS == 1