Subversion Repositories Kolibri OS

Rev

Rev 3391 | Rev 3482 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3391 Rev 3480
Line 170... Line 170...
170
 
170
 
171
struct delayed_work {
171
struct delayed_work {
172
    struct work_struct work;
172
    struct work_struct work;
Line -... Line 173...
-
 
173
};
-
 
174
 
-
 
175
static inline struct delayed_work *to_delayed_work(struct work_struct *work)
-
 
176
{
-
 
177
    return container_of(work, struct delayed_work, work);
-
 
178
}
-
 
179
 
173
};
180
 
174
 
181
 
Line 175... Line 182...
175
struct workqueue_struct *alloc_workqueue_key(const char *fmt,
182
struct workqueue_struct *alloc_workqueue_key(const char *fmt,
176
                           unsigned int flags, int max_active);
183
                           unsigned int flags, int max_active);
Line 177... Line 184...
177
 
184
 
178
 
185
 
Line -... Line 186...
-
 
186
#define alloc_ordered_workqueue(fmt, flags, args...)            \
-
 
187
        alloc_workqueue(fmt, WQ_UNBOUND | (flags), 1, ##args)
-
 
188
 
-
 
189
int queue_delayed_work(struct workqueue_struct *wq,
-
 
190
                        struct delayed_work *dwork, unsigned long delay);
-
 
191
 
-
 
192
#define INIT_WORK(_work, _func)                 \
179
#define alloc_ordered_workqueue(fmt, flags, args...)            \
193
    do {                                        \
180
        alloc_workqueue(fmt, WQ_UNBOUND | (flags), 1, ##args)
194
        INIT_LIST_HEAD(&(_work)->entry);        \
181
 
195
        (_work)->func = _func;                  \
182
int queue_delayed_work(struct workqueue_struct *wq,
196
    } while (0)
183
                        struct delayed_work *dwork, unsigned long delay);
197
 
Line 205... Line 219...
205
        }
219
        }
Line 206... Line 220...
206
 
220
 
Line -... Line 221...
-
 
221
#define DEFINE_WAIT(name) DEFINE_WAIT_FUNC(name, autoremove_wake_function)
-
 
222
 
207
#define DEFINE_WAIT(name) DEFINE_WAIT_FUNC(name, autoremove_wake_function)
223