GCS Amplitude
GCS Amplitude

Apache Module mod_slotmem_plain

Apache Module mod_slotmem_plain

Summary

Directives

is a memory provider which provides for creation and access to a plain memory segment in which the datasets are organized in "slots."

If the memory needs to be shared between threads and processes, a better provider would be modslotmemshm

provides the following API functions:

- aprstatust doall(apslotmeminstancet s, apslotmemcallbackfnt func, void data, aprpoolt pool) - call the callback on all worker slots - aprstatust create(apslotmeminstancet new, const char name, aprsizet itemsize, unsigned int itemnum, apslotmemtypet type, aprpoolt pool) - create a new slotmem with each item size is itemsize. - aprstatust attach(apslotmeminstancet new, const char name, aprsizet itemsize, unsigned int itemnum, aprpoolt pool) - attach to an existing slotmem. - aprstatust dptr(apslotmeminstancet s, unsigned int itemid, voidmem) - get the direct pointer to the memory associated with this worker slot. - aprstatust get(apslotmeminstancet s, unsigned int itemid, unsigned char dest, aprsizet destlen) - get/read the memory from this slot to dest - aprstatust put(apslotmeminstancet slot, unsigned int itemid, unsigned char src, aprsizet srclen) - put/write the data from src to this slot - unsigned int numslots(apslotmeminstancet s) - return the total number of slots in the segment - aprsizet slotsize(apslotmeminstancet *s) - return the total data size, in bytes, of a slot in the segment - aprstatust grab(apslotmeminstancet s, unsigned int itemid); - grab or allocate the first free slot and mark as in-use (does not do any data copying) - aprstatust fgrab(apslotmeminstancet s, unsigned int itemid); - forced grab or allocate the specified slot and mark as in-use (does not do any data copying) - aprstatust release(apslotmeminstancet s, unsigned int item_id); - release or free a slot and mark as not in-use (does not do any data copying)

Modules | Directives | FAQ | Glossary | Sitemap

Apache HTTP Server Version 2.4

Modules

Modules | Directives | FAQ | Glossary | Sitemap

Apache Module mod_slotmem_plain

Available Languages: en | fr

en

Available Languages: en | fr

Apache License, Version 2.0

Copyright 2014 The Apache Software Foundation.Licensed under the Apache License, Version 2.0.