< Previous by Date | Date Index | Next by Date > |
Thread Index | Next in Thread > |
#include <WinSock2.h>
#include <Windows.h>
#include <string>
using namespace std;
#include <rutil/threadif.hxx>
using namespace resip;
#pragma comment(lib, "ws2_32.lib")
#pragma comment(lib, "../lib/rutilD.lib")
class MyThread : public ThreadIf
{
public:
virtual void thread()
{
cout << "MyThread::thead()" << endl;
}
};
class Test
{
public:
void release()
{
mMyThread.detach();
}
protected:
private:
MyThread mMyThread;
};
int main()
{
Test t;
t.release();
return 0;
}