Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 28612 invoked by uid 6000); 20 Nov 1997 17:12:33 -0000 Received: (qmail 28603 invoked from network); 20 Nov 1997 17:12:32 -0000 Received: from prairie.nodak.edu (root@134.129.111.80) by taz.hyperreal.org with SMTP; 20 Nov 1997 17:12:32 -0000 Received: from prairie.nodak.edu (junker.cs.ndsu.NoDak.edu [134.129.125.144]) by prairie.NoDak.edu (8.8.8/8.8.8) with ESMTP id LAA26235 for ; Thu, 20 Nov 1997 11:12:28 -0600 (CST) Message-ID: <34747033.647C873D@prairie.nodak.edu> Date: Thu, 20 Nov 1997 11:15:31 -0600 From: Igor Tatarinov X-Mailer: Mozilla 4.03 [en] (WinNT; I) MIME-Version: 1.0 To: new-httpd@apache.org Subject: Re: Want to add file caching to Apache References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org Charles Randall wrote: > > Would it be prudent to create an abstract Apache-API to shared memory > and semaphores before starting this work? > > Charles Randall > crandall@matchlogic.com Yes, I was going to do that at some point. Unfortunately, this assumes going down to the assembly language (the compare&swap instruction is not visible otherwise). I've found that Linux has a macro xchg() that should help on any 486/gcc based system. Not sure about other platforms/compilers; they may not like assembler stuff at all. igor -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Igor Tatarinov, graduate student, Computer Science Dept, NDSU e-mail: tatarino@prairie.nodak.edu or itat@acm.org http://www.cs.ndsu.nodak.edu/~tatarino ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~