Matthias Hennig wrote:
>
> Hi all,
>
> I am looking for documentation on how to implement threads with C++. My
> problem is that I call a function from a class via pthread_create and
> pass a (void *)-pointer with parameters. But this pointer points
> anywhere, but not to the structure I want...
would this pointer happen to be relative to a class/struct ?
Threads only understand C-style pointers (i.e. no 'this' pointer).
you need to provide C-style interface functions, or pass a struct
containing the 'this' and any other pointers you need to the thread
startup func.
ron
-
Linux SMP list: FIRST see FAQ at http://www.irisa.fr/prive/mentre/smp-faq/
To Unsubscribe: send "unsubscribe linux-smp" to [EMAIL PROTECTED]