[ale] OT: dummy C++/threads question
John Mills
johnmills at speakeasy.net
Wed Jul 23 14:08:30 EDT 2003
Jason -
Thanks for the note.
On Wed, 23 Jul 2003, Jason Day wrote:
> 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
Ahh - clear, concise, and definite. Since I have no particular reason to
use a member function for this, I'll follow the 'course of least
resistance' more comfortably.
Thanks again.
John Mills
john.m.mills at alum.mit.edu
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list