Changeset 442 for GPL/trunk/include/linux/workqueue.h
- Timestamp:
- Jun 6, 2009, 11:07:11 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/include/linux/workqueue.h
r441 r442 1 1 #ifndef __LINUX_WORKQUEUE_H 2 2 #define __LINUX_WORKQUEUE_H 3 4 #include <sound/compat_22.h> 5 /* we know this is used below exactly once for at most one waiter */ 6 3 7 struct work_struct { 4 8 unsigned long pending; … … 10 14 }; 11 15 16 struct workqueue_struct { 17 spinlock_t lock; 18 const char *name; 19 struct list_head worklist; 20 int task_pid; 21 struct task_struct *task; 22 wait_queue_head_t more_work; 23 wait_queue_head_t work_done; 24 struct completion thread_exited; 25 }; 12 26 struct delayed_work { 13 27 struct work_struct work; 14 28 }; 29 30 struct workqueue_struct *create_workqueue(const char *name); 31 void destroy_workqueue(struct workqueue_struct *wq); 32 int queue_work(struct workqueue_struct *wq, struct work_struct *work); 33 void flush_workqueue(struct workqueue_struct *wq); 15 34 16 35 #define INIT_WORK(_work, _func, _data) \ … … 35 54 #define INIT_WORK(w,f) snd_INIT_WORK(w,f) 36 55 #define create_singlethread_workqueue(name) create_workqueue(name) 56 37 57 #endif /* __LINUX_WORKQUEUE_H */
Note:
See TracChangeset
for help on using the changeset viewer.