added busy-wait global variable
This commit is contained in:
parent
cb71b2fca6
commit
f3311d5d4c
2 changed files with 7 additions and 2 deletions
|
@ -26,7 +26,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: simEnvChange.c,v 1.1 2006/08/21 12:11:20 fros4943 Exp $
|
||||
* $Id: simEnvChange.c,v 1.2 2006/10/02 15:05:49 fros4943 Exp $
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
@ -37,6 +37,8 @@
|
|||
// All registered interfaces
|
||||
extern const struct simInterface *simInterfaces[];
|
||||
|
||||
char busyWaitNext = 0;
|
||||
|
||||
int simProcessRunValue;
|
||||
int simEtimerPending;
|
||||
int simNextExpirationTime;
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: simEnvChange.h,v 1.1 2006/08/21 12:11:20 fros4943 Exp $
|
||||
* $Id: simEnvChange.h,v 1.2 2006/10/02 15:05:49 fros4943 Exp $
|
||||
*/
|
||||
|
||||
#ifndef __SIMENVCHANGE_H__
|
||||
|
@ -43,6 +43,9 @@ extern int simProcessRunValue;
|
|||
extern int simEtimerPending;
|
||||
extern int simNextExpirationTime;
|
||||
|
||||
// Variable that if set to != 0, immediately yields before then next process_run() call
|
||||
extern char busyWaitNext;
|
||||
|
||||
// Definition for registering an interface
|
||||
#define SIM_INTERFACE(name, doActionsBeforeTick, doActionsAfterTick) \
|
||||
const struct simInterface name = { doActionsBeforeTick, doActionsAfterTick }
|
||||
|
|
Loading…
Reference in a new issue