Skip to content

Commit

Permalink
Ispravljena inicijalizacija polja u konstruktoru
Browse files Browse the repository at this point in the history
  • Loading branch information
djordje200179 committed Nov 6, 2022
1 parent 695489a commit 8020bb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion os2/2021/11/k1.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ private:
};
class BoundedBuffer {
public:
BoundedBuffer() : numberInBuffer(0) {}
BoundedBuffer() : numberInBuffer(0), slotAvailable(&mutex), itemAvailable(&mutex) {}
void put(Data* d);
Data* get();
private:
Expand Down

0 comments on commit 8020bb3

Please sign in to comment.