Created
January 24, 2012 15:03
-
-
Save silv3rm00n/1670591 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A::one_method() | |
{ | |
//Create the thread | |
Create(); | |
wxThread *a = GetThread(); | |
if(a != NULL) | |
{ | |
// go! | |
if (a->Run() != wxTHREAD_NO_ERROR) | |
{ | |
log( _("Could not run the worker thread!") ); | |
return; | |
} | |
return; | |
} | |
return; | |
} | |
.......... | |
a little later | |
wxThread::ExitCode A::Entry() | |
{ | |
log(_("Thread starting\n")); | |
//Call the outer class function start_sniffer | |
//start_sniffer(); | |
return (wxThread::ExitCode)0; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment