Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.development.system > #382

Re: Calling libiptc API from a separate thread in a C program throws segmentati

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
From Kaz Kylheku <kaz@kylheku.com>
Newsgroups comp.os.linux.development.system
Subject Re: Calling libiptc API from a separate thread in a C program throws segmentati
Date Tue, 17 Jan 2012 22:03:20 +0000 (UTC)
Organization A noiseless patient Spider
Lines 21
Message-ID <20120117135234.277@kylheku.com> (permalink)
References <bKSdndZeXcWVzYjS4p2dnAA@giganews.com> <20120117102310.171@kylheku.com> <slrnjhbpr9.1ls.grahn+nntp@frailea.sa.invalid>
Injection-Date Tue, 17 Jan 2012 22:03:20 +0000 (UTC)
Injection-Info mx04.eternal-september.org; posting-host="UCk3K/YilCUd19+i749f3A"; logging-data="27617"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18o1NeCxTLHI8poYDMRi0wGycZLgobpHsA="
User-Agent slrn/pre1.0.0-18 (Linux)
Cancel-Lock sha1:dozB/5lK0hFgFu4P4C5BSSjMcN0=
Xref x330-a1.tempe.blueboxinc.net comp.os.linux.development.system:382

Show key headers only | View raw


On 2012-01-17, Jorgen Grahn <grahn+nntp@snipabacken.se> wrote:
>> At one point -pthread was equivalent to -D_REENTRANT and -lpthread,
>> but that may change in the future if it has not already; it's better
>> to use the -pthread interface.
>
> Either the gcc manual is incomplete, or your explanation is not

Whom are you going to believe, me or the GCC manual? :)

> entirely correct.  For at least x86 and amd64, there is no -pthread
> option.  It's there for ppc though.

$ echo "" | gcc -pthread -E -dM - | grep REE
#define _REENTRANT 1
$ echo "" | gcc -E -dM - | grep REE
$ arch
i686

*wink*

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16519

Back to comp.os.linux.development.system | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Calling libiptc API from a separate thread in a C program throws segmentati kkgarg78 <nospam_kamalkgarg@gmail.com.invalid> - 2012-01-17 04:40 -0600
  Re: Calling libiptc API from a separate thread in a C program throws segmentati Kaz Kylheku <kaz@kylheku.com> - 2012-01-17 18:48 +0000
    Re: Calling libiptc API from a separate thread in a C program throws segmentati Jorgen Grahn <grahn+nntp@snipabacken.se> - 2012-01-17 21:26 +0000
      Re: Calling libiptc API from a separate thread in a C program throws segmentati Kaz Kylheku <kaz@kylheku.com> - 2012-01-17 22:03 +0000
        Re: Calling libiptc API from a separate thread in a C program throws segmentati Richard Kettlewell <rjk@greenend.org.uk> - 2012-01-17 22:07 +0000
          Re: Calling libiptc API from a separate thread in a C program throws segmentati Kaz Kylheku <kaz@kylheku.com> - 2012-01-17 22:34 +0000
            Re: Calling libiptc API from a separate thread in a C program throws segmentati Richard Kettlewell <rjk@greenend.org.uk> - 2012-01-17 22:51 +0000
              Re: Calling libiptc API from a separate thread in a C program throws segmentati Kaz Kylheku <kaz@kylheku.com> - 2012-01-17 23:13 +0000
        Re: Calling libiptc API from a separate thread in a C program throws segmentati Jorgen Grahn <grahn+nntp@snipabacken.se> - 2012-01-17 22:56 +0000
  Re: Calling libiptc API from a separate thread in a C program throws segmentati Richard Kettlewell <rjk@greenend.org.uk> - 2012-01-21 11:29 +0000

csiph-web