[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] OT: dummy C++/threads question
- Subject: [ale] OT: dummy C++/threads question
- From: johnmills at speakeasy.net (John Mills)
- Date: Wed, 23 Jul 2003 12:21:02 -0400 (EDT)
ALErs (C++ gurus??) -
I have a C++ class with a member function, say:
void * CMyClass::MyFunction(void * myArgs) {blah}
I want to this function to be executed in a thread started by another
member of the same class:
fnType CMyClass::MyManager()
{
...
pthread_create(&someInt, NULL, &CMyclass::MyFunction, &someStruct);
// can't get this right-->> ^^^^^^^^^^^^^^^^^^^^^
}
How can I pass the pointer to my member function?
TIA.
John Mills
john.m.mills at alum.mit.edu
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale