Changeset 679 for GPL/trunk/include/linux/workqueue.h
- Timestamp:
- Mar 18, 2021, 8:57:36 PM (4 years ago)
- Location:
- GPL/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk
- Property svn:mergeinfo changed
/GPL/branches/uniaud32-linux-3.2.102 (added) merged: 611-614 /GPL/branches/uniaud32-next (added) merged: 615-678
- Property svn:mergeinfo changed
-
GPL/trunk/include/linux/workqueue.h
r598 r679 3 3 4 4 #include <linux/timer.h> 5 #include <sound/compat_22.h> 5 #include <linux/completion.h> 6 #include <linux/bitops.h> 7 8 #define cancel_work_sync(w) flush_scheduled_work() 6 9 /* we know this is used below exactly once for at most one waiter */ 7 10 … … 63 66 #define create_singlethread_workqueue(name) create_workqueue(name) 64 67 #define cancel_delayed_work_sync flush_delayed_work_sync 68 69 /** 70 * schedule_work - put work task in global workqueue 71 * @work: job to be done 72 * 73 * Returns %false if @work was already on the kernel-global workqueue and 74 * %true otherwise. 75 * 76 * This puts a job in the kernel-global workqueue if it was not already 77 * queued and leaves it in the same position on the kernel-global 78 * workqueue otherwise. 79 */ 80 int schedule_work(struct work_struct *works); 81 82 bool flush_delayed_work_sync(struct delayed_work *dwork); 83 extern struct workqueue_struct *system_wq; 84 85 /* I can't find a more suitable replacement... */ 86 #define flush_work(work) cancel_work_sync(work) 87 65 88 #endif /* __LINUX_WORKQUEUE_H */
Note:
See TracChangeset
for help on using the changeset viewer.