Skip to content

Instantly share code, notes, and snippets.

@silv3rm00n
Created January 24, 2012 15:03
Show Gist options
  • Save silv3rm00n/1670591 to your computer and use it in GitHub Desktop.
Save silv3rm00n/1670591 to your computer and use it in GitHub Desktop.
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