From d718e6ecb201311bafd1e827ea46df4f4794cbea Mon Sep 17 00:00:00 2001 From: John Breaux Date: Wed, 6 Apr 2022 01:45:57 -0500 Subject: [PATCH] +Attribution --- Makefile | 6 ++++++ inc/consumer.hpp | 8 +++++++- inc/globals.hpp | 7 +++++++ inc/list.hpp | 8 +++++++- inc/producer.hpp | 8 +++++++- inc/transformer.hpp | 8 +++++++- src/consumer.cpp | 7 +++++++ src/list.cpp | 7 +++++++ src/main.cpp | 7 +++++++ src/producer.cpp | 7 +++++++ src/transformer.cpp | 7 +++++++ 11 files changed, 76 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 6fddbbf..a81c1cb 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,9 @@ +# +-------------+---------+-----------------------+ +# | John Breaux | jab0910 | JohnBreaux@my.unt.edu | +# +-------------+---------+-----------------------+ +# | 2022-04-04 | +# +-----------------------------------------------+ + # ---------- Variables listed below --------- # # Executable diff --git a/inc/consumer.hpp b/inc/consumer.hpp index d5e7d7f..a33f7ca 100644 --- a/inc/consumer.hpp +++ b/inc/consumer.hpp @@ -1,4 +1,10 @@ - +/* + +-------------+---------+-----------------------+ + | John Breaux | jab0910 | JohnBreaux@my.unt.edu | + +-------------+---------+-----------------------+ + | 2022-04-04 | + +-----------------------------------------------+ +*/ /* consumer: Unlinks blocks from list2, diff --git a/inc/globals.hpp b/inc/globals.hpp index 4da9b08..a36ecfe 100644 --- a/inc/globals.hpp +++ b/inc/globals.hpp @@ -1,3 +1,10 @@ +/* + +-------------+---------+-----------------------+ + | John Breaux | jab0910 | JohnBreaux@my.unt.edu | + +-------------+---------+-----------------------+ + | 2022-04-04 | + +-----------------------------------------------+ +*/ #define N 8 #define timescale 10000 diff --git a/inc/list.hpp b/inc/list.hpp index eb0dcdf..07955f4 100644 --- a/inc/list.hpp +++ b/inc/list.hpp @@ -1,4 +1,10 @@ - +/* + +-------------+---------+-----------------------+ + | John Breaux | jab0910 | JohnBreaux@my.unt.edu | + +-------------+---------+-----------------------+ + | 2022-04-03 | + +-----------------------------------------------+ +*/ struct block { block *prev; block *next; diff --git a/inc/producer.hpp b/inc/producer.hpp index 1d563be..6b8565f 100644 --- a/inc/producer.hpp +++ b/inc/producer.hpp @@ -1,4 +1,10 @@ - +/* + +-------------+---------+-----------------------+ + | John Breaux | jab0910 | JohnBreaux@my.unt.edu | + +-------------+---------+-----------------------+ + | 2022-04-04 | + +-----------------------------------------------+ +*/ /* producer: Unlinks blocks from freelist, diff --git a/inc/transformer.hpp b/inc/transformer.hpp index d11e4aa..de1e220 100644 --- a/inc/transformer.hpp +++ b/inc/transformer.hpp @@ -1,4 +1,10 @@ - +/* + +-------------+---------+-----------------------+ + | John Breaux | jab0910 | JohnBreaux@my.unt.edu | + +-------------+---------+-----------------------+ + | 2022-04-04 | + +-----------------------------------------------+ +*/ /* transformer: Unlinks block x from list1 diff --git a/src/consumer.cpp b/src/consumer.cpp index df81270..7c88c86 100644 --- a/src/consumer.cpp +++ b/src/consumer.cpp @@ -1,3 +1,10 @@ +/* + +-------------+---------+-----------------------+ + | John Breaux | jab0910 | JohnBreaux@my.unt.edu | + +-------------+---------+-----------------------+ + | 2022-04-04 | + +-----------------------------------------------+ +*/ #include // POSIX semaphores! #include "list.hpp" // list implementation #include "globals.hpp" // lists, sems, muts diff --git a/src/list.cpp b/src/list.cpp index 13bb167..e6e683a 100644 --- a/src/list.cpp +++ b/src/list.cpp @@ -1,3 +1,10 @@ +/* + +-------------+---------+-----------------------+ + | John Breaux | jab0910 | JohnBreaux@my.unt.edu | + +-------------+---------+-----------------------+ + | 2022-04-03 | + +-----------------------------------------------+ +*/ #include "list.hpp" #include diff --git a/src/main.cpp b/src/main.cpp index 63a91a3..6860da6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,3 +1,10 @@ +/* + +-------------+---------+-----------------------+ + | John Breaux | jab0910 | JohnBreaux@my.unt.edu | + +-------------+---------+-----------------------+ + | 2022-04-03 | + +-----------------------------------------------+ +*/ #include // POSIX semaphores! #include // POSIX threads! #include // usleep diff --git a/src/producer.cpp b/src/producer.cpp index fe9662f..d4ed056 100644 --- a/src/producer.cpp +++ b/src/producer.cpp @@ -1,3 +1,10 @@ +/* + +-------------+---------+-----------------------+ + | John Breaux | jab0910 | JohnBreaux@my.unt.edu | + +-------------+---------+-----------------------+ + | 2022-04-04 | + +-----------------------------------------------+ +*/ #include // POSIX semaphores! #include "list.hpp" // list implementation #include "globals.hpp" // lists, sems, muts diff --git a/src/transformer.cpp b/src/transformer.cpp index 18f2338..04ef5b2 100644 --- a/src/transformer.cpp +++ b/src/transformer.cpp @@ -1,3 +1,10 @@ +/* + +-------------+---------+-----------------------+ + | John Breaux | jab0910 | JohnBreaux@my.unt.edu | + +-------------+---------+-----------------------+ + | 2022-04-04 | + +-----------------------------------------------+ +*/ #include // POSIX semaphores! #include "list.hpp" // list implementation #include "globals.hpp" // lists, sems, muts