theKernel 10.0
Loading...
Searching...
No Matches
libmkkernel::MkCacheS Struct Reference

This is an circel storage of a linked-list connected with a "lock" at libmkkernel::MkCacheSMore...

#include <LibMkKernel_mk.h>

+ Collaboration diagram for libmkkernel::MkCacheS:

Public Attributes

MK_RT runtime
 link to the runtime
 
MK_STRB name [MkCacheS_name_size]
 name of the cache
 
struct MkCacheItemSused
 used cache items
 
struct MkCacheItemSfree_first
 free first cache item
 
struct MkCacheItemSfree_last
 free last cache item
 
MkCacheCF createF
 function to create 'data'
 
MkCacheDF deleteF
 function to delete 'data'
 
MK_PTR createD
 additional create data item
 
MK_NUM num
 MIN num items in cache.
 
struct MkCacheItemS MkCacheItemS_A [MkCacheS_MkCacheItemS_size]
 
MK_NUM MkCacheItemS_N
 

Detailed Description

This is an circel storage of a linked-list connected with a "lock" at libmkkernel::MkCacheS

  • a new item is taken from the free_first saved on top of the used.
  • an old item is taken from the used and saved into the free_last.

The number of items between free_first and free_last is MIN num, so that between a reuse of an old-item is always min items used bevor.

Definition at line 2325 of file LibMkKernel_mk.h.

Member Data Documentation

◆ createD

MK_PTR libmkkernel::MkCacheS::createD

additional create data item

Definition at line 2334 of file LibMkKernel_mk.h.

◆ createF

MkCacheCF libmkkernel::MkCacheS::createF

function to create 'data'

Definition at line 2332 of file LibMkKernel_mk.h.

◆ deleteF

MkCacheDF libmkkernel::MkCacheS::deleteF

function to delete 'data'

Definition at line 2333 of file LibMkKernel_mk.h.

◆ free_first

struct MkCacheItemS* libmkkernel::MkCacheS::free_first

free first cache item

Definition at line 2330 of file LibMkKernel_mk.h.

◆ free_last

struct MkCacheItemS* libmkkernel::MkCacheS::free_last

free last cache item

Definition at line 2331 of file LibMkKernel_mk.h.

◆ MkCacheItemS_A

struct MkCacheItemS libmkkernel::MkCacheS::MkCacheItemS_A[MkCacheS_MkCacheItemS_size]

Definition at line 2338 of file LibMkKernel_mk.h.

◆ MkCacheItemS_N

MK_NUM libmkkernel::MkCacheS::MkCacheItemS_N

Definition at line 2339 of file LibMkKernel_mk.h.

◆ name

MK_STRB libmkkernel::MkCacheS::name[MkCacheS_name_size]

name of the cache

Definition at line 2328 of file LibMkKernel_mk.h.

◆ num

MK_NUM libmkkernel::MkCacheS::num

MIN num items in cache.

Definition at line 2335 of file LibMkKernel_mk.h.

◆ runtime

MK_RT libmkkernel::MkCacheS::runtime

link to the runtime

Definition at line 2326 of file LibMkKernel_mk.h.

◆ used

struct MkCacheItemS* libmkkernel::MkCacheS::used

used cache items

Definition at line 2329 of file LibMkKernel_mk.h.


The documentation for this struct was generated from the following file: