mirror of
https://github.com/13hannes11/UU_la_parallel_programming_practical_assignments.git
synced 2024-09-04 00:50:58 +02:00
fix compilation error
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
#ifndef ADT_Stack_H
|
||||
#define ADT_Stack_H
|
||||
|
||||
#include <stack>
|
||||
#include <vector>
|
||||
#include <mutex>
|
||||
@@ -30,4 +33,6 @@ class ADTOperationQueue{
|
||||
void enqueue(operation op);
|
||||
operation dequeue();
|
||||
size_t size();
|
||||
};
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -12,7 +12,7 @@ Stack::Stack(ADTOperationQueue * queue){
|
||||
|
||||
void Stack::push(int element) { return; }
|
||||
int Stack::pop() { return 0; }
|
||||
void Stack::size() { return 0; }
|
||||
int Stack::size() { return 0; }
|
||||
|
||||
std::string Stack::print_stack(){
|
||||
Node* c = this->first->next;
|
||||
|
||||
@@ -41,6 +41,7 @@ std::vector<operation> generate_operations_uniform(){
|
||||
break;
|
||||
}
|
||||
}
|
||||
return operations;
|
||||
}
|
||||
|
||||
void run_worker(std::vector<operation>* operations, Stack* stack) {
|
||||
|
||||
Reference in New Issue
Block a user