mirror of
https://github.com/Relintai/programming_tutorials.git
synced 2025-05-13 23:02:12 +02:00
24 lines
532 B
C++
24 lines
532 B
C++
#ifndef PRIMEFACTORIZATIONWITHSINGLETHREAD_H
|
|
#define PRIMEFACTORIZATIONWITHSINGLETHREAD_H
|
|
|
|
#include "PrimeFactorization.h"
|
|
|
|
#include <thread>
|
|
|
|
using namespace std;
|
|
|
|
class PrimeFactorizationWithSingleThread : public PrimeFactorization
|
|
{
|
|
public:
|
|
void launch(uint64_t p_num);
|
|
|
|
static void _thread_func(PrimeFactorizationWithSingleThread *p);
|
|
|
|
PrimeFactorizationWithSingleThread();
|
|
virtual ~PrimeFactorizationWithSingleThread();
|
|
|
|
thread *t;
|
|
};
|
|
|
|
#endif // PRIMEFACTORIZATIONWITHSINGLETHREAD_H
|