From f1cbfd18b7593b27a493834b528a09680ec2849a Mon Sep 17 00:00:00 2001 From: Drew Galbraith Date: Wed, 22 Nov 2023 13:45:04 -0800 Subject: [PATCH] [Mammoth] Move Mutex and Semaphore to a separate folder. --- lib/mammoth/CMakeLists.txt | 4 ++-- lib/mammoth/{src => sync}/mutex.cpp | 2 +- lib/mammoth/{include/mammoth => sync}/mutex.h | 0 lib/mammoth/{src => sync}/semaphore.cpp | 2 +- lib/mammoth/{include/mammoth => sync}/semaphore.h | 0 sys/denali/ahci/command.h | 2 +- sys/yellowstone/yellowstone_server.h | 2 +- 7 files changed, 6 insertions(+), 6 deletions(-) rename lib/mammoth/{src => sync}/mutex.cpp (95%) rename lib/mammoth/{include/mammoth => sync}/mutex.h (100%) rename lib/mammoth/{src => sync}/semaphore.cpp (91%) rename lib/mammoth/{include/mammoth => sync}/semaphore.h (100%) diff --git a/lib/mammoth/CMakeLists.txt b/lib/mammoth/CMakeLists.txt index 0b4b002..225221b 100644 --- a/lib/mammoth/CMakeLists.txt +++ b/lib/mammoth/CMakeLists.txt @@ -7,11 +7,11 @@ add_library(mammoth STATIC src/debug.cpp src/init.cpp src/memory_region.cpp - src/mutex.cpp src/new.cpp src/process.cpp - src/semaphore.cpp src/thread.cpp + sync/mutex.cpp + sync/semaphore.cpp ) target_include_directories(mammoth diff --git a/lib/mammoth/src/mutex.cpp b/lib/mammoth/sync/mutex.cpp similarity index 95% rename from lib/mammoth/src/mutex.cpp rename to lib/mammoth/sync/mutex.cpp index dd49ce5..8ae04c0 100644 --- a/lib/mammoth/src/mutex.cpp +++ b/lib/mammoth/sync/mutex.cpp @@ -1,4 +1,4 @@ -#include "mammoth/mutex.h" +#include "sync/mutex.h" #include diff --git a/lib/mammoth/include/mammoth/mutex.h b/lib/mammoth/sync/mutex.h similarity index 100% rename from lib/mammoth/include/mammoth/mutex.h rename to lib/mammoth/sync/mutex.h diff --git a/lib/mammoth/src/semaphore.cpp b/lib/mammoth/sync/semaphore.cpp similarity index 91% rename from lib/mammoth/src/semaphore.cpp rename to lib/mammoth/sync/semaphore.cpp index f6e348d..5979902 100644 --- a/lib/mammoth/src/semaphore.cpp +++ b/lib/mammoth/sync/semaphore.cpp @@ -1,4 +1,4 @@ -#include "mammoth/semaphore.h" +#include "sync/semaphore.h" #include diff --git a/lib/mammoth/include/mammoth/semaphore.h b/lib/mammoth/sync/semaphore.h similarity index 100% rename from lib/mammoth/include/mammoth/semaphore.h rename to lib/mammoth/sync/semaphore.h diff --git a/sys/denali/ahci/command.h b/sys/denali/ahci/command.h index 50316b8..2f85d82 100644 --- a/sys/denali/ahci/command.h +++ b/sys/denali/ahci/command.h @@ -2,7 +2,7 @@ #include #include -#include +#include #include #include "ahci/ahci.h" diff --git a/sys/yellowstone/yellowstone_server.h b/sys/yellowstone/yellowstone_server.h index 5c36369..e3608fb 100644 --- a/sys/yellowstone/yellowstone_server.h +++ b/sys/yellowstone/yellowstone_server.h @@ -4,7 +4,7 @@ #include #include #include -#include +#include #include #include