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 <stack>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
@@ -31,3 +34,5 @@ class ADTOperationQueue{
|
|||||||
operation dequeue();
|
operation dequeue();
|
||||||
size_t size();
|
size_t size();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
@@ -12,7 +12,7 @@ Stack::Stack(ADTOperationQueue * queue){
|
|||||||
|
|
||||||
void Stack::push(int element) { return; }
|
void Stack::push(int element) { return; }
|
||||||
int Stack::pop() { return 0; }
|
int Stack::pop() { return 0; }
|
||||||
void Stack::size() { return 0; }
|
int Stack::size() { return 0; }
|
||||||
|
|
||||||
std::string Stack::print_stack(){
|
std::string Stack::print_stack(){
|
||||||
Node* c = this->first->next;
|
Node* c = this->first->next;
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ std::vector<operation> generate_operations_uniform(){
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return operations;
|
||||||
}
|
}
|
||||||
|
|
||||||
void run_worker(std::vector<operation>* operations, Stack* stack) {
|
void run_worker(std::vector<operation>* operations, Stack* stack) {
|
||||||
|
|||||||
Reference in New Issue
Block a user