theKernel 10.0 NHI1 - theKernel - theLink - theConfig - theSq3Lite - theCompiler - theBrain - theGuard
c - tcl - py - jv - cc
Loading...
Searching...
No Matches
MkCacheS Struct Reference

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

#include <LibMkKernel_mk.h>

+ Collaboration diagram for MkCacheS:

Data Fields

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 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 2168 of file LibMkKernel_mk.h.

Field Documentation

◆ createD

MK_PTR MkCacheS::createD

additional create data item

Definition at line 2177 of file LibMkKernel_mk.h.

◆ createF

MkCacheCF MkCacheS::createF

function to create 'data'

Definition at line 2175 of file LibMkKernel_mk.h.

◆ deleteF

MkCacheDF MkCacheS::deleteF

function to delete 'data'

Definition at line 2176 of file LibMkKernel_mk.h.

◆ free_first

struct MkCacheItemS* MkCacheS::free_first

free first cache item

Definition at line 2173 of file LibMkKernel_mk.h.

◆ free_last

struct MkCacheItemS* MkCacheS::free_last

free last cache item

Definition at line 2174 of file LibMkKernel_mk.h.

◆ MkCacheItemS_A

struct MkCacheItemS MkCacheS::MkCacheItemS_A[MkCacheS_MkCacheItemS_size]

Definition at line 2181 of file LibMkKernel_mk.h.

◆ MkCacheItemS_N

MK_NUM MkCacheS::MkCacheItemS_N

Definition at line 2182 of file LibMkKernel_mk.h.

◆ name

MK_STRB MkCacheS::name[MkCacheS_name_size]

name of the cache

Definition at line 2171 of file LibMkKernel_mk.h.

◆ num

MK_NUM MkCacheS::num

MIN num items in cache.

Definition at line 2178 of file LibMkKernel_mk.h.

◆ runtime

MK_RT MkCacheS::runtime

link to the runtime

Definition at line 2169 of file LibMkKernel_mk.h.

◆ used

struct MkCacheItemS* MkCacheS::used

used cache items

Definition at line 2172 of file LibMkKernel_mk.h.


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