From modules-dev-return-3681-apmail-httpd-modules-dev-archive=httpd.apache.org@httpd.apache.org Tue Nov 22 09:40:50 2011 Return-Path: X-Original-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AA5089B4B for ; Tue, 22 Nov 2011 09:40:50 +0000 (UTC) Received: (qmail 26269 invoked by uid 500); 22 Nov 2011 09:40:50 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 26243 invoked by uid 500); 22 Nov 2011 09:40:50 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 26235 invoked by uid 99); 22 Nov 2011 09:40:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Nov 2011 09:40:50 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [195.4.92.93] (HELO mout3.freenet.de) (195.4.92.93) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Nov 2011 09:40:40 +0000 Received: from [195.4.92.142] (helo=mjail2.freenet.de) by mout3.freenet.de with esmtpa (ID mypop@freenet.de) (port 25) (Exim 4.76 #5) id 1RSmpw-00030S-Ay for modules-dev@httpd.apache.org; Tue, 22 Nov 2011 10:40:20 +0100 Received: from localhost ([::1]:54622 helo=mjail2.freenet.de) by mjail2.freenet.de with esmtpa (ID mypop@freenet.de) (Exim 4.76 #1) id 1RSmpw-00046m-6m for modules-dev@httpd.apache.org; Tue, 22 Nov 2011 10:40:20 +0100 Received: from [195.4.92.14] (port=42473 helo=4.mx.freenet.de) by mjail2.freenet.de with esmtpa (ID mypop@freenet.de) (Exim 4.76 #1) id 1RSmn7-000257-Uh for modules-dev@httpd.apache.org; Tue, 22 Nov 2011 10:37:25 +0100 Received: from radzewitz.freenet-ag.de ([62.104.227.65]:56484) by 4.mx.freenet.de with esmtpsa (ID mypop@freenet.de) (TLSv1:CAMELLIA256-SHA:256) (port 25) (Exim 4.76 #1) id 1RSmn7-0006tM-Mb for modules-dev@httpd.apache.org; Tue, 22 Nov 2011 10:37:25 +0100 Subject: Re: basic example shared memory code From: michaelr To: modules-dev@httpd.apache.org In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Tue, 22 Nov 2011 10:37:24 +0100 Message-ID: <1321954644.2197.2.camel@radzewitz.freenet-ag.de> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org On Tue, 2011-11-22 at 11:26 +0200, Oğuzhan TOPGÜL wrote: > Hi guys, I'm trying to learn shared memory and mutex concepts and i need an > example shared memory apache module code that was written in c. > I found some codes, but none of them is working properly. I'm using ubuntu > 10.10 as a development environment. Do you have any basic codes like shared > memory counter or etc. > If you can send me a working example, i'll be appreciated because i'm very > very confused and stuck about shared memory concepts. I just need a basic > example code snippet > The example module from: http://www.codemass.com/mod_shm_counter/ helped me a lot understanding the basic concepts of the apr shared memory functions.