scheduler: Add method to remove all scheduled jobs

References #840.
This commit is contained in:
Tobias Brunner
2015-03-09 15:57:57 +01:00
parent 1bfa5e0cac
commit 11ac1dff9c
2 changed files with 21 additions and 5 deletions
+6 -1
View File
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2009 Tobias Brunner
* Copyright (C) 2009-2015 Tobias Brunner
* Copyright (C) 2005-2007 Martin Willi
* Copyright (C) 2005 Jan Hutter
* Hochschule fuer Technik Rapperswil
@@ -114,6 +114,11 @@ struct scheduler_t {
*/
u_int (*get_job_load) (scheduler_t *this);
/**
* Remove all scheduled jobs.
*/
void (*flush)(scheduler_t *this);
/**
* Destroys a scheduler object.
*/