Beispiel #1
0
void PrintHelpFiles( HelpSrchPathItem *srch )
{
    FileList    *list;

    list = initFileList();
    fillFileList( srch, list );
    sortFileList( list );
    printFileList( list );
    freeFileList( list );
}
Beispiel #2
0
// From an unknown state we need to set up our world.
void  fList::reset(void) {

  // Redraw the background of the screen.
  drawBackground();

  // Set up our favorite colors.
  pencil.setColor(&white);
  pencil.blend(&black, 70);

  // Who's saved in params? And, grab the current list of files.
  readParamFile();
  fillFileList("/");

  // Make ourselves the controller. Being top dog is good.
  setControlPtr(this);
  setFocusPtr(NULL);
  setNeedRefresh();
}
Beispiel #3
0
void SMTController::run()
{
	assert(m_uiNumber);
	assert(m_szFile);

	fillFileList();
	m_pUPThread->start();

	if (!makeThreads())
		return;

	for (size_t x=0; x<m_vWorkerList.size(); x++)
		m_vWorkerList[x]->workThread->start();

	while (true)
	{
		doPause();

		if (isStopped())
			break;

		//wait here as we have nothing else to do
		m_WaitCond.wait(2);

		if (m_iRunningWorkers==0)
			break;
	}

	m_pUPThread->stop();

	for (size_t x=0; x<m_vWorkerList.size(); x++)
		m_vWorkerList[x]->workThread->stop();

	if (!isStopped())
		postProcessing();

	safe_delete(m_vWorkerList);
}