summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Lukas Jiriste [Tue, 19 Mar 2024 12:42:49 +0000 (13:42 +0100)]
Implement handling of a lone philosopher
Lukas Jiriste [Tue, 19 Mar 2024 11:33:16 +0000 (12:33 +0100)]
Add the number_of_times_each_philosopher_must_eat
This option required minor code changes, because I tried to prepare
for this in advance but I had an incorrect understanding of the option.
Lukas Jiriste [Tue, 19 Mar 2024 10:32:07 +0000 (11:32 +0100)]
Add missing indexing on initialization
Lukas Jiriste [Tue, 19 Mar 2024 10:30:21 +0000 (11:30 +0100)]
Add parantheses around return value
Lukas Jiriste [Tue, 19 Mar 2024 10:23:36 +0000 (11:23 +0100)]
Fix leak caused by not accepting thread's return
The threads have alocatted memory where return value resides.
A thread has to be joined (or detached) to release this memory.
Lukas Jiriste [Thu, 7 Mar 2024 16:52:47 +0000 (17:52 +0100)]
Implement mandatory part of philosophers
Sorry for big commit, I wrote it in one session and didn't encounter
an apropriate point for partial commit.
This needs to be tested and refactored to pass the 42 Norm.
Lukas Jiriste [Fri, 22 Mar 2024 09:49:13 +0000 (10:49 +0100)]
Add .gitignore as an initial commit