Merge pull request #167 from robertbaldyga/add-cleaner-kick-to-example

example: Add missing cleaner kick function
This commit is contained in:
Kamil Łepek 2019-05-23 16:31:45 +02:00 committed by GitHub
commit 13884f7b85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
}, },