New function process_nevents().
This commit is contained in:
parent
b065b27759
commit
e4e3a11b8b
2 changed files with 21 additions and 3 deletions
|
@ -28,7 +28,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* @(#)$Id: process.c,v 1.1 2006/06/17 22:41:20 adamdunkels Exp $
|
||||
* @(#)$Id: process.c,v 1.2 2006/08/17 15:39:24 bg- Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -353,6 +353,16 @@ process_run(void)
|
|||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
int
|
||||
process_nevents(void)
|
||||
{
|
||||
#ifdef NPOLLS
|
||||
return nevents + npolls;
|
||||
#else
|
||||
return nevents + poll_requested;
|
||||
#endif
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
int
|
||||
process_post(struct process *p, process_event_t ev, process_data_t data)
|
||||
{
|
||||
static unsigned char snum;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue