summaryrefslogtreecommitdiffstats
path: root/creator_thread.cpp
blob: 2443c6bdbdd20ad72a1c7cb8dde517c6e6c9c614 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include "creator_thread.h"

CreatorThread::CreatorThread(Dialog *d)
	: wxThread()
{
	m_dialog = d;
}

void CreatorThread::OnExit()
{
}

wxThread::ExitCode CreatorThread::Entry()
{
	int i;
	for (i = 0; i<=100; i++) {
		wxMutexGuiEnter();
		m_dialog->SetProgress(i);
		wxMutexGuiLeave();

		wxMilliSleep(100);
	}
	return NULL;
}