This is the mail archive of the
mailing list for the GCC project.
Re: threads in C++
- To: Mike Stump <mrs at windriver dot com>
- Subject: Re: threads in C++
- From: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>
- Date: 15 Nov 1999 23:02:02 -0200
- Cc: dvv at dvv dot org, jlarmour at cygnus dot co dot uk, gcc at gcc dot gnu dot org
- References: <199911152311.PAA14747@kankakee.wrs.com>
On Nov 15, 1999, Mike Stump <firstname.lastname@example.org> wrote:
>> Date: Mon, 15 Nov 1999 12:14:22 -0500
>> From: Dima Volodin <email@example.com>
>> > Not necessarily. You could use a static member function. But if you need
>> > to get at object data, you'll have to get that passed in explicitly.
>> POSIX doesn't say you can use a "static member function", ergo you
>> can not. If the trick works for g++, it doesn't mean it will work
>> for any other compiler.
> They also don't say that you can do with with functions named foo, but
> guess what, you can. Or let me put this another way, C++ guarantees
> that this can be done.
Not if a compiler uses different calling conventions for C and C++,
which I believe isn't forbidden. In this case, the (lack of) `extern
"C"' could make much of a difference.
Alexandre Oliva http://www.ic.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
** I may forward mail about projects to mailing lists; please use them