- Main Page
- Related Pages
- Data Structures
- Files

- File List
- Globals

# lib/delayed_work.c

Go to the documentation of this file.

    00001
    00045 #include <delayed_work.h>
    00046
    00047 static void delayed_work_timeout(void *data)
    00048 {
    00049         struct delayed_work *dw = data;
    00050
    00051         workqueue_add_item(dw->wq, dw->work);
    00052 }
    00053
    00054 void delayed_work_init(struct delayed_work *dw,
    00055                 struct timer *timer, struct workqueue *wq)
    00056 {
    00057         timer_init_task(&dw->timer_task, delayed_work_timeout, dw);
    00058         dw->timer = timer;
    00059         dw->wq = wq;
    00060 }
    00061