www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2002/12/12/04:46:04

Mailing-List: contact cygwin-developers-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT cygwin DOT com>
List-Help: <mailto:cygwin-developers-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT cygwin DOT com
Delivered-To: mailing list cygwin-developers AT cygwin DOT com
X-Authentication-Warning: atacama.four-d.de: mail set sender to <tpfaff AT gmx DOT net> using -f
Date: Thu, 12 Dec 2002 10:45:42 +0100 (=?ISO-8859-1?Q?Westeurop=E4ische_Normalzeit?=)
From: Thomas Pfaff <tpfaff AT gmx DOT net>
To: "Gary R. Van Sickle" <g DOT r DOT vansickle AT worldnet DOT att DOT net>
cc: cygwin-developers AT cygwin DOT com
Subject: RE: quandary with pthreads
In-Reply-To: <NCBBIHCHBLCMLBLOBONKKEHDDJAA.g.r.vansickle@worldnet.att.net>
Message-ID: <Pine.WNT.4.44.0212121037580.250-100000@algeria.intern.net>
X-X-Sender: pfaff AT antarctica DOT intern DOT net
MIME-Version: 1.0

Yup, that did the trick.
Chris, can you take a look at it ?

Thomas

On Thu, 12 Dec 2002, Gary R. Van Sickle wrote:

> Ok, attached is what I'd try if I was set up to try it.  I've found that
> you
> pretty much always need the "volatile" after the __asm__, or the newer
> gccs want
> to optimize your assembly away, even if they should be able to tell that
> you've
> got side-effects.
>
> --
> Gary R. Van Sickle
> Brewer.  Patriot.
>
> > -----Original Message-----
> > From: cygwin-developers-owner AT cygwin DOT com
> > [mailto:cygwin-developers-owner AT cygwin DOT com]On Behalf Of Christopher
> > Faylor
> > Sent: Thursday, December 12, 2002 12:03 AM
> > To: cygwin-developers AT cygwin DOT com
> > Subject: Re: quandary with pthreads
> >
> >
> > On Wed, Dec 11, 2002 at 11:53:03PM -0600, Gary R. Van Sickle wrote:
> > >>I have created assembler versions for the Interlocked functions that
> > >>work fine unless they are made inline (see attachment).  Maybe
> someone
> > >>with a better understanding of gcc inline assembler might have a
> look
> > >>at it).
> > >
> > >I may have the painfully-acquired honor of fitting that description.
> > >How were you trying to inline them?  Essentially as-is?  If so, I
> just
> > >may be able to help.
> >
> > The routines in question are in winbase.h.  I took inspiration for
> most
> > of them from linux.
> >
> > cgf
>
>

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019