Changeset ace9358 in mainline
- Timestamp:
- 2008-05-12T18:51:05Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 83512f21
- Parents:
- 34b3ce3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/synch/waitq.c
r34b3ce3 race9358 61 61 * Initialize wait queue. 62 62 * 63 * @param wq 63 * @param wq Pointer to wait queue to be initialized. 64 64 */ 65 65 void waitq_initialize(waitq_t *wq) … … 72 72 /** Handle timeout during waitq_sleep_timeout() call 73 73 * 74 * This routine is called when waitq_sleep_timeout() time outs.74 * This routine is called when waitq_sleep_timeout() times out. 75 75 * Interrupts are disabled. 76 76 * … … 80 80 * timeout at all. 81 81 * 82 * @param data 82 * @param data Pointer to the thread that called waitq_sleep_timeout(). 83 83 */ 84 84 void waitq_sleep_timed_out(void *data) … … 124 124 * If the thread is not found sleeping, no action is taken. 125 125 * 126 * @param t 126 * @param t Thread to be interrupted. 127 127 */ 128 128 void waitq_interrupt_sleep(thread_t *t) … … 235 235 * and interrupts disabled. 236 236 * 237 * @param wq 238 * 239 * @return 237 * @param wq Wait queue. 238 * 239 * @return Interrupt level as it existed on entry to this function. 240 240 */ 241 241 ipl_t waitq_sleep_prepare(waitq_t *wq) … … 273 273 * lock is released. 274 274 * 275 * @param wq 276 * @param rc 277 * @param ipl 275 * @param wq Wait queue. 276 * @param rc Return code of waitq_sleep_timeout_unsafe(). 277 * @param ipl Interrupt level returned by waitq_sleep_prepare(). 278 278 */ 279 279 void waitq_sleep_finish(waitq_t *wq, int rc, ipl_t ipl) … … 293 293 * 294 294 * This function implements logic of sleeping in a wait queue. 295 * This call must be prece eded by a call to waitq_sleep_prepare()296 * and followed by a call to waitq_slee _finish().297 * 298 * @param wq 299 * @param usec 300 * @param flags 301 * 302 * @return 295 * This call must be preceded by a call to waitq_sleep_prepare() 296 * and followed by a call to waitq_sleep_finish(). 297 * 298 * @param wq See waitq_sleep_timeout(). 299 * @param usec See waitq_sleep_timeout(). 300 * @param flags See waitq_sleep_timeout(). 301 * 302 * @return See waitq_sleep_timeout(). 303 303 */ 304 304 int waitq_sleep_timeout_unsafe(waitq_t *wq, uint32_t usec, int flags) … … 385 385 * timeout. 386 386 * 387 * @param wq Pointer to wait queue.388 * @param mode Wakeup mode.387 * @param wq Pointer to wait queue. 388 * @param mode Wakeup mode. 389 389 */ 390 390 void waitq_wakeup(waitq_t *wq, wakeup_mode_t mode) … … 406 406 * assumes wq->lock is already locked and interrupts are already disabled. 407 407 * 408 * @param wq Pointer to wait queue.409 * @param mode If mode is WAKEUP_FIRST, then the longest waiting thread,410 * if any, is woken up. If mode is WAKEUP_ALL, then all411 * waiting threads, if any, are woken up. If there are no412 * waiting threads to be woken up, the missed wakeup is413 * recorded in the wait queue.408 * @param wq Pointer to wait queue. 409 * @param mode If mode is WAKEUP_FIRST, then the longest waitingi 410 * thread, if any, is woken up. If mode is WAKEUP_ALL, then 411 * all waiting threads, if any, are woken up. If there are 412 * no waiting threads to be woken up, the missed wakeup is 413 * recorded in the wait queue. 414 414 */ 415 415 void _waitq_wakeup_unsafe(waitq_t *wq, wakeup_mode_t mode)
Note:
See TracChangeset
for help on using the changeset viewer.