#include <provider.h>
Public Member Functions | |
template<class FUNCTOR > | |
void | flush (FUNCTOR functor) |
ensure no locked item are to be removed [should be protected, do not use] | |
Provider () | |
void | pushPriorities () |
[should be protected, do not use] called in controller thread! | |
void | rebuild () |
assumes heap lock is locked, runs in cache thread [should be protected, do not use] | |
virtual | ~Provider () |
Public Attributes | |
QDoor | check_queue |
signals (to next cache!) priorities have changed or something is available | |
PtrDHeap< Token > | heap |
holds the resources in this cache but not in the cache above | |
bool | heap_dirty |
signals we need to rebuild heap. | |
mt::mutex | heap_lock |
lock this before manipulating heap. | |
int | max_tokens |
tokens above this number will be scheduled for deletion |
Definition at line 23 of file provider.h.
vcg::Provider< Token >::Provider | ( | ) | [inline] |
Definition at line 36 of file provider.h.
virtual vcg::Provider< Token >::~Provider | ( | ) | [inline, virtual] |
Definition at line 37 of file provider.h.
void vcg::Provider< Token >::flush | ( | FUNCTOR | functor | ) | [inline] |
ensure no locked item are to be removed [should be protected, do not use]
Reimplemented in vcg::Cache< Token >.
Definition at line 66 of file provider.h.
void vcg::Provider< Token >::pushPriorities | ( | ) | [inline] |
[should be protected, do not use] called in controller thread!
Definition at line 40 of file provider.h.
void vcg::Provider< Token >::rebuild | ( | ) | [inline] |
assumes heap lock is locked, runs in cache thread [should be protected, do not use]
Definition at line 49 of file provider.h.
QDoor vcg::Provider< Token >::check_queue |
signals (to next cache!) priorities have changed or something is available
Definition at line 34 of file provider.h.
PtrDHeap<Token> vcg::Provider< Token >::heap |
holds the resources in this cache but not in the cache above
Definition at line 26 of file provider.h.
bool vcg::Provider< Token >::heap_dirty |
signals we need to rebuild heap.
Definition at line 30 of file provider.h.
mt::mutex vcg::Provider< Token >::heap_lock |
lock this before manipulating heap.
Definition at line 32 of file provider.h.
int vcg::Provider< Token >::max_tokens |
tokens above this number will be scheduled for deletion
Definition at line 28 of file provider.h.