Merge pull request #167 from robertbaldyga/add-cleaner-kick-to-example
example: Add missing cleaner kick function
This commit is contained in:
commit
13884f7b85
@ -143,6 +143,14 @@ static int ctx_cleaner_init(ocf_cleaner_t c)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Kick cleaner thread. Cleaner thread is left non-implemented,
|
||||||
|
* to keep this example as simple as possible.
|
||||||
|
*/
|
||||||
|
static void ctx_cleaner_kick(ocf_cleaner_t c)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Stop cleaner thread. Cleaner thread is left non-implemented, to keep
|
* Stop cleaner thread. Cleaner thread is left non-implemented, to keep
|
||||||
* this example as simple as possible.
|
* this example as simple as possible.
|
||||||
@ -244,6 +252,7 @@ static const struct ocf_ctx_config ctx_cfg = {
|
|||||||
|
|
||||||
.cleaner = {
|
.cleaner = {
|
||||||
.init = ctx_cleaner_init,
|
.init = ctx_cleaner_init,
|
||||||
|
.kick = ctx_cleaner_kick,
|
||||||
.stop = ctx_cleaner_stop,
|
.stop = ctx_cleaner_stop,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user