![]()  | 
  
    Knight's Tour Generator
    
   Tourneys and the Fast Generation and Obfuscation of Closed Knight's Tours 
   | 
 
Search thread. More...
#include <SearchThread.h>
  
Public Member Functions | |
| void | operator() () | 
| The code that gets run by each thread.  More... | |
Private Member Functions | |
| void | Generate (CSearchRequest &request) | 
| Generate knight's tour/tourney.  More... | |
Additional Inherited Members | |
  Static Protected Attributes inherited from CSearchThreadQueues | |
| static CThreadSafeQueue< CSearchRequest > | m_cSearchRequest | 
| Search request queue.  | |
| static CThreadSafeQueue< CSearchResult > | m_cSearchResult | 
| Search result queue.  | |
The code that is run in each search thread, consisting of the generation code and an override for operator() so that threads can be created in the approved C++ manner.
Definition at line 41 of file SearchThread.h.
      
  | 
  private | 
Generate a knight's tour or tourney according to a search request.
| request | Search request. | 
Definition at line 51 of file SearchThread.cpp.
| void CSearchThread::operator() | ( | ) | 
The function executed by a search thread, which repeatedly pops a search request from the thread-safe request queue m_cSearchRequest and calls Generate() to perform the requested search. The thread terminates when the request queue is empty.
Definition at line 41 of file SearchThread.cpp.
 1.8.15