diff options
author | Jonas Suhr Christensen <jsc@umbraculum.org> | 2015-04-10 17:39:19 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-01-20 13:22:08 +0100 |
commit | fea2ff5536a06a3f1ddee9484e165961169ffce5 (patch) | |
tree | 7057979b155129a3a3485c764d1b91d849b6df88 /src/cachemanager.h | |
parent | 651ea5b2245648077f70ce5c5985beb748e20614 (diff) |
Added clean type event. Help functions. And more cache manager logic.
Diffstat (limited to 'src/cachemanager.h')
-rw-r--r-- | src/cachemanager.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/cachemanager.h b/src/cachemanager.h index b30de4c..6a14429 100644 --- a/src/cachemanager.h +++ b/src/cachemanager.h @@ -91,14 +91,20 @@ private: void *b; } cache_t; + enum cmd_t { + LOADNEXT = 0, + CLEAN = 1 + }; + typedef struct { + bool active; cacheid_t id; + cmd_t cmd; } event_t; + CacheManager::event_t createEvent(cacheid_t id, cmd_t type); void loadNext(cacheid_t id); void pushEvent(event_t e); - cacheid_t leaseId(); - cacheid_t releaseId(); // Protected by mutex std::list<event_t> eventqueue; |