[ale] OT: dummy C++/threads question

Jason Day jasonday at worldnet.att.net
Wed Jul 23 13:48:26 EDT 2003


On Wed, Jul 23, 2003 at 12:21:02PM -0400, John Mills wrote:
>   pthread_create(&someInt, NULL, &CMyclass::MyFunction, &someStruct);
>   // can't get this right-->>    ^^^^^^^^^^^^^^^^^^^^^
> 
> How can I pass the pointer to my member function?

You can't.  See here for more information and workaround suggestions:

http://www.parashift.com/c++-faq-lite/pointers-to-members.html#faq-33.2

-- 
Jason Day                                       jasonday at
http://jasonday.home.att.net                    worldnet dot att dot net
 
"Of course I'm paranoid, everyone is trying to kill me."
    -- Weyoun-6, Star Trek: Deep Space 9
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale





More information about the Ale mailing list