~martin-decky/helenos/rcu

« back to all changes in this revision

Viewing changes to kernel/generic/include/proc/workq.h

  • Committer: Martin Decky
  • Date: 2012-06-20 18:07:24 UTC
  • Revision ID: martin@decky.cz-20120620180724-vhctn1c30vh1qayh
adopt RCU for HelenOS specifics (no CPUs in motion)

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
 
38
38
#include <typedefs.h>
39
39
 
40
 
#define WORKQ_FLAG_NOQUEUE  (1 << 0)
 
40
typedef enum {
 
41
        WORKQ_FLAG_NONE = 0,
 
42
        WORKQ_FLAG_NOQUEUE = (1 << 0)
 
43
} workq_flags_t;
41
44
 
42
45
typedef void (*workq_fn_t)(void *);
43
46
 
49
52
 
50
53
extern void workq_init(void);
51
54
extern workq_t *workq_create(size_t, const char *);
52
 
extern void *workq_dispatch(workq_t *, workq_fn_t, void *, unsigned int);
 
55
extern void *workq_dispatch(workq_t *, workq_fn_t, void *, workq_flags_t);
53
56
extern void workq_wait(workq_t *);
54
57
 
55
58
#endif