mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-07 13:14:51 +00:00
Add taskqgroup_config_gtask_deinit to support teardown after
taskqgroup_config_gtask_init. Approved by: sbruno
This commit is contained in:
parent
cbd92ce62e
commit
36688f706e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=333426
@ -987,3 +987,9 @@ taskqgroup_config_gtask_init(void *ctx, struct grouptask *gtask, gtask_fn_t *fn,
|
||||
GROUPTASK_INIT(gtask, 0, fn, ctx);
|
||||
taskqgroup_attach(qgroup_config, gtask, gtask, -1, name);
|
||||
}
|
||||
|
||||
void
|
||||
taskqgroup_config_gtask_deinit(struct grouptask *gtask)
|
||||
{
|
||||
taskqgroup_detach(qgroup_config, gtask);
|
||||
}
|
||||
|
@ -63,6 +63,7 @@ void taskqgroup_destroy(struct taskqgroup *qgroup);
|
||||
int taskqgroup_adjust(struct taskqgroup *qgroup, int cnt, int stride);
|
||||
void taskqgroup_config_gtask_init(void *ctx, struct grouptask *gtask, gtask_fn_t *fn,
|
||||
const char *name);
|
||||
void taskqgroup_config_gtask_deinit(struct grouptask *gtask);
|
||||
|
||||
#define TASK_ENQUEUED 0x1
|
||||
#define TASK_SKIP_WAKEUP 0x2
|
||||
|
Loading…
Reference in New Issue
Block a user