mirror of
https://github.com/eosswedenorg/antelope-keygen
synced 2026-06-18 04:00:03 +02:00
common/include/eoskeygen/key_search.hpp: add max and count variables to the class.
This is done so that m_max can be set to zero from another method. stopping a find() operation. (for threaded operations)
This commit is contained in:
parent
3cc6a2530e
commit
2a528e0eb0
3 changed files with 31 additions and 31 deletions
|
|
@ -83,15 +83,21 @@ protected :
|
|||
#ifdef EOSIOKEYGEN_HAVE_THREADS
|
||||
void _thr_proc();
|
||||
|
||||
void _search_mt(size_t n);
|
||||
void _search_mt();
|
||||
#endif /* EOSIOKEYGEN_HAVE_THREADS */
|
||||
|
||||
void _search_linear(size_t n);
|
||||
void _search_linear();
|
||||
|
||||
protected :
|
||||
// List of words to search for.
|
||||
strlist_t m_words;
|
||||
|
||||
// Max keys to search for.
|
||||
std::size_t m_max;
|
||||
|
||||
// Current number of keys found.
|
||||
std::size_t m_count;
|
||||
|
||||
#ifdef EOSIOKEYGEN_HAVE_THREADS
|
||||
// Number of threads to use.
|
||||
size_t m_threads;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue