Variable. More...
#include <xanlib.h>
Data Fields | |
void * | data |
sem_t | mutex |
void *(* | alloc )(size_t size) |
void(* | free )(void *address) |
void *(* | synchRead )(struct XanVar *var) |
void(* | synchWrite )(struct XanVar *var, void *data) |
void *(* | read )(struct XanVar *var) |
void(* | write )(struct XanVar *var, void *data) |
void(* | lock )(struct XanVar *var) |
void(* | unlock )(struct XanVar *var) |
void(* | destroyVarAndData )(struct XanVar *var) |
Variable.
Variable which store pointer
Definition at line 178 of file xanlib.h.
void*(* XanVar::alloc)(size_t size) |
Definition at line 182 of file xanlib.h.
Referenced by xanVarNew().
void* XanVar::data |
Definition at line 180 of file xanlib.h.
Referenced by _varRead(), _varWrite(), varDestroyVarAndData(), and xanVarNew().
void(* XanVar::destroyVarAndData)(struct XanVar *var) |
Destroy the XanVar and the data stored inside
Definition at line 193 of file xanlib.h.
Referenced by xanVarNew().
void(* XanVar::free)(void *address) |
Definition at line 183 of file xanlib.h.
Referenced by varDestroyVarAndData(), and xanVarNew().
void(* XanVar::lock)(struct XanVar *var) |
sem_t XanVar::mutex |
Definition at line 181 of file xanlib.h.
Referenced by varDestroyVarAndData(), varLock(), varRead(), varUnlock(), varWrite(), and xanVarNew().
void*(* XanVar::read)(struct XanVar *var) |
Return the pointer to the user variable.
Definition at line 189 of file xanlib.h.
Referenced by xanVarNew().
void*(* XanVar::synchRead)(struct XanVar *var) |
Return the pointer to the user variable. This operation is act only after taked the lock to the list.
Definition at line 186 of file xanlib.h.
Referenced by xanVarNew().
void(* XanVar::synchWrite)(struct XanVar *var, void *data) |
Write the user variable inside the XanVar structure. This operation is act only after taked the lock to the list.
Definition at line 187 of file xanlib.h.
Referenced by xanVarNew().
void(* XanVar::unlock)(struct XanVar *var) |
void(* XanVar::write)(struct XanVar *var, void *data) |
Write the user variable inside the XanVar structure.
Definition at line 190 of file xanlib.h.
Referenced by xanVarNew().