CPPLearning/main.cpp
/**
 Create a thread by class func and pass by ref
 */
Create a thread by class func and pass by ref
Create a thread by class func and pass by ref
void passByRefInThread()
{
    RenderThread *render;
    render = new RenderThread;
    std::string s = "Ewan";
    render->passByRef(s);
    delete render;
}
void passByRefInThread ( ) { RenderThread * render ; render = new RenderThread ; std :: string s = " " ; render -> passByRef ( s ) ; delete render ; }
Create a thread by class func and pass by ref
Create a thread by class func and pass by ref