Search the web
Sign In
New User? Sign Up
cheapthreads · cheap_threads
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
C++ class method to be called by scheduler   Message List  
Reply | Forward Message #25 of 89 |
Greetingz all.

Once again I have stumbled across a problem using the Cheap_Threads C-code
in conjunction with my own C++ code. The story goes a bit like this...

I have a class called PortChecker (for example), this class contains a
member function called with the prototype: int run(void * pData)

Now this run method is what I want the Cheap_Threads scheduler to call.
I've tried a number of things including returning function pointers (with
no success).

Anyone have any useful ideas?

Thnx.

-Antz

================================================================
Joe's Playa rules:
1. Con-fi-dence. If you KNOW you sexy, that MAKE you sexy, and IF you sexy, you
KNOW you sexy. It's a sexy circle.
2. Most women WANT to be seduced. You are NOT their opponent. You are their
partner in a very pleasurable crime.
3. Let nothin' and I mean not NOTHIN'... rattle you. See: Rule 1.
=================================================================



Thu Nov 27, 2003 2:34 pm

antz_ii
Offline Offline
Send Email Send Email

Forward
Message #25 of 89 |
Expand Messages Author Sort by Date

Greetingz all. Once again I have stumbled across a problem using the Cheap_Threads C-code in conjunction with my own C++ code. The story goes a bit like...
Antz
antz_ii
Offline Send Email
Nov 27, 2003
2:34 pm

You can't call a C++ member function directly from C. In the case of a non-static member function, the compiler arranges to pass an additional parameter -- a...
Scott McKellar
jm407a
Offline Send Email
Nov 27, 2003
3:52 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help