Re: Binary Tree Shared Memory Problem

2011-11-29 Thread Ignaz Birnstingl
Hi, is there any example mod_slotmem codes that we can understand the usage? Or could you give me an usage example? Sorry, I can't. I haven't used it myself but someone mentioned it in one of your previous threads. And i want to ask a question, is it a problem to create typedef struct node

Re: Binary Tree Shared Memory Problem

2011-11-29 Thread rm
On Tue, Nov 29, 2011 at 12:29:20AM +0200, O??uzhan TOPG?L wrote: Hi, is there any example mod_slotmem codes that we can understand the usage? Have you looked at the code? 'mod_slotmem_shm.c' is less than 650 lines of code, 'mod_slotmem_plain.c' less than 300. Sorry, but you have to do _some_

Re: Binary Tree Shared Memory Problem

2011-11-28 Thread Ignaz Birnstingl
Hi, apr_shm_baseaddr_get returns the base address for the shared memory segment. You will have to implement your own allocator within the shared memory. Also keep in mind that you can't reliably use pointers inside the shared memory segment, because - as the documentation states - the

Re: Binary Tree Shared Memory Problem

2011-11-28 Thread Oğuzhan TOPGÜL
Hi, is there any example mod_slotmem codes that we can understand the usage? Or could you give me an usage example? For example we are using apr_shm_create() in post_config, but mod_slotmem is a little bit hard to understand i think. And i want to ask a question, is it a problem to create typedef

Binary Tree Shared Memory Problem

2011-11-27 Thread Oğuzhan TOPGÜL
Hi, i'm trying to use a binary that has a main node, and every leaf is also a node that has leaves. So i'm using a struct that's called node and this node has two nodes in it. i defined a struct like typedef struct element{ int IP; int counter; }ELEMENT; typedef struct node { ELEMENT