Revert "lab6 bash exercises"

This reverts commit 812b14a4ed.
This commit is contained in:
2024-12-17 19:47:38 +02:00
parent 812b14a4ed
commit 8aea945eed
20 changed files with 183 additions and 348 deletions

22
include/bproducer.h Normal file
View File

@@ -0,0 +1,22 @@
//
// Created by lumijiez on 12/8/24.
//
#ifndef BPRODUCER_H
#define BPRODUCER_H
#include "buffer.h"
#include <semaphore>
class BProducer {
public:
BProducer(int id, Buffer& buffer, std::counting_semaphore<3>& sem);
void run() const;
private:
int id;
Buffer& buffer;
std::counting_semaphore<3>& producerSem;
};
#endif //BPRODUCER_H