🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #14451

Threads con metodos en c++

#14451
From: migue
Date: Mon, 13 Nov 2000 00:00
19 lines
1321 bytes
Hola a todos. Estoy intentando compilar un programa que he bajado y me
da algunos problemillas.

El �nico que no puedo solucionar es el siguiente:

Hace una llamada a
int  pthread_create(pthread_t  *  thread, pthread_attr_t *attr, void *
(*start_routine)(void *), void * arg)
pas�ndole com "void * (start_routine)(void *)" un m�todo de la clase
Animation con el siguiente
prototipo : void * Animation::ChildStart(void *arg)

He probado lo siguiente y no ha funcionado (en el constructor de la
clase Animation):

pthread_create(.., .., (void *) this->ChildStart, (void *) this)
pthread_create(.., .., (void *) Animation::ChildStart, (void *) this)

Alguna idea?
Technical Details
Message-ID: <3A0FC450.50893827@eui.upv.es>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,99ae65df3cf6224e,start
X-Google-Attributes: gidf86c8,public
From: migue <migarroi@eui.upv.es>
Subject: Threads con metodos en c++
Date: 2000/11/13
Message-ID: <3A0FC450.50893827@eui.upv.es>
X-Deja-AN: 693001122
Content-Transfer-Encoding: 8bit
X-Accept-Language: es-ES, en
Content-Type: text/plain; charset=iso-8859-1
X-Complaints-To: newsmaster@upv.es
X-Trace: polaris.cc.upv.es 974108103 21512 158.42.219.5 (13 Nov 2000 09:35:03 GMT)
Organization: U.P.V.
Mime-Version: 1.0
NNTP-Posting-Date: 13 Nov 2000 09:35:03 GMT
Newsgroups: es.comp.os.linux.programacion