wiki:ProvidersInterface

Providers Interface

This page describe the XCache 2.0 WIP providers interface. Providers interface include shared memory, memory manager and lock.

Common Provider Interface

  • class members
    • attach
    • init
  • object members
    • detach
    • destroy

Shared Memory Provider Interface

  • class members
    • support_readonly_protection
    • support_scope(AccessScope scope)
    • init(..., AccessScope scope, bool readonly_protection)
  • object members
    • is_readonly
    • is_readwrite
    • to_readonly
    • to_readwrite

Memory Manager Provider Interface

  • object members
    • malloc
    • calloc
    • free
    • avail
    • size
    • freeblock_first
    • freeblock_next
    • block_size
    • block_offset

Lock Provider Interface

  • class members
    • support_scope(AccessScope scope)
    • init(..., access_scope_t scope)
  • object members
    • lock(LOCK_SH | LOCK_EX | LOCK_NONBLOCK)
    • unlock
Last modified 7 years ago Last modified on 2007-08-10T09:34:04+02:00