/[lwip]/lwip/src/core/sys.c
ViewVC logotype

Diff of /lwip/src/core/sys.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.15 by likewise, Wed Jun 11 22:34:51 2003 UTC revision 1.15.2.1 by likewise, Fri Nov 14 09:42:51 2003 UTC
# Line 44  struct sswt_cb Line 44  struct sswt_cb
44  };  };
45    
46    
47  /*-----------------------------------------------------------------------------------*/  
48  void  void
49  sys_mbox_fetch(sys_mbox_t mbox, void **msg)  sys_mbox_fetch(sys_mbox_t mbox, void **msg)
50  {  {
# Line 96  sys_mbox_fetch(sys_mbox_t mbox, void **m Line 96  sys_mbox_fetch(sys_mbox_t mbox, void **m
96    
97    }    }
98  }  }
99  /*-----------------------------------------------------------------------------------*/  
100  void  void
101  sys_sem_wait(sys_sem_t sem)  sys_sem_wait(sys_sem_t sem)
102  {  {
# Line 152  sys_sem_wait(sys_sem_t sem) Line 152  sys_sem_wait(sys_sem_t sem)
152    
153    }    }
154  }  }
155  /*-----------------------------------------------------------------------------------*/  
156  void  void
157  sys_timeout(u32_t msecs, sys_timeout_handler h, void *arg)  sys_timeout(u32_t msecs, sys_timeout_handler h, void *arg)
158  {  {
# Line 203  sys_timeout(u32_t msecs, sys_timeout_han Line 203  sys_timeout(u32_t msecs, sys_timeout_han
203  /* Go through timeout list (for this task only) and remove the first matching entry,  /* Go through timeout list (for this task only) and remove the first matching entry,
204     even though the timeout has not triggered yet.     even though the timeout has not triggered yet.
205  */  */
206  /*-----------------------------------------------------------------------------------*/  
207  void  void
208  sys_untimeout(sys_timeout_handler h, void *arg)  sys_untimeout(sys_timeout_handler h, void *arg)
209  {  {
# Line 238  sys_untimeout(sys_timeout_handler h, voi Line 238  sys_untimeout(sys_timeout_handler h, voi
238    
239    
240    
241  /*-----------------------------------------------------------------------------------*/  
242  static void  static void
243  sswt_handler(void *arg)  sswt_handler(void *arg)
244  {  {
# Line 252  sswt_handler(void *arg) Line 252  sswt_handler(void *arg)
252  /* Wait for a semaphore with timeout (specified in ms) */  /* Wait for a semaphore with timeout (specified in ms) */
253  /* timeout = 0: wait forever */  /* timeout = 0: wait forever */
254  /* Returns 0 on timeout. 1 otherwise */  /* Returns 0 on timeout. 1 otherwise */
255  /*-----------------------------------------------------------------------------------*/  
256  int  int
257  sys_sem_wait_timeout(sys_sem_t sem, u32_t timeout)  sys_sem_wait_timeout(sys_sem_t sem, u32_t timeout)
258  {  {
# Line 279  sys_sem_wait_timeout(sys_sem_t sem, u32_ Line 279  sys_sem_wait_timeout(sys_sem_t sem, u32_
279    
280  }  }
281    
282  /*-----------------------------------------------------------------------------------*/  
283  void  void
284  sys_msleep(u32_t ms)  sys_msleep(u32_t ms)
285  {  {
# Line 289  sys_msleep(u32_t ms) Line 289  sys_msleep(u32_t ms)
289    
290    sys_sem_free(delaysem);    sys_sem_free(delaysem);
291  }  }
292  /*-----------------------------------------------------------------------------------*/  
293    
294  #endif /* NO_SYS */  #endif /* NO_SYS */

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.15.2.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26