Global server memory.
More...
|
typedef struct vtm_http_mem | vtm_http_mem |
|
VTM_API void vtm_http_mem_put |
( |
vtm_http_mem * |
mem, |
|
|
const char * |
key, |
|
|
void * |
val |
|
) |
| |
Stores a single value in the memory.
- Parameters
-
mem | the global memory |
key | the key under which the value is stored |
val | the value that is stored |
VTM_API void* vtm_http_mem_get |
( |
vtm_http_mem * |
mem, |
|
|
const char * |
key |
|
) |
| |
Retrieves a stored value from the memory.
- Parameters
-
mem | the global memory |
key | the key for the value that should be retrieved |
VTM_API void vtm_http_mem_lock |
( |
vtm_http_mem * |
mem, |
|
|
const char * |
key |
|
) |
| |
Acquire global lock for given key.
This call may block until the lock can be acquired.
- Parameters
-
mem | the global memory |
key | the key that should be locked |
VTM_API void vtm_http_mem_unlock |
( |
vtm_http_mem * |
mem, |
|
|
const char * |
key |
|
) |
| |
Unlock given key.
- Parameters
-
mem | the global memory |
key | the key that should be unlocked |