* Refactored the kernel daemon code into a class.

* Added a second kernel daemon service, resource resizer, which is
  mainly supposed to be used for resizing allocations asynchrounously.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27122 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2008-08-22 01:13:18 +00:00
parent fc06a3f822
commit 77b93362c2
2 changed files with 142 additions and 59 deletions
+11 -2
View File
@@ -6,12 +6,21 @@
#define _KERNEL_DAEMON_H
#include <OS.h>
#include <KernelExport.h>
#ifdef __cplusplus
extern "C"
extern "C" {
#endif
status_t register_resource_resizer(daemon_hook function, void* arg,
int frequency);
status_t unregister_resource_resizer(daemon_hook function, void* arg);
status_t kernel_daemon_init(void);
#ifdef __cplusplus
}
#endif
#endif /* _KERNEL_DAEMON_H */