diff options
| author | Mikhail Romanko <me@blankhex.com> | 2025-03-03 10:12:35 +0300 |
|---|---|---|
| committer | Mikhail Romanko <me@blankhex.com> | 2025-03-03 10:25:45 +0300 |
| commit | fe2f39d489a1b5fd9130ce7306f94ae7eacc2ce1 (patch) | |
| tree | 13b7290e461b8be0045422a03e2e054cf6f9bc87 | |
| parent | d403d41f2c54ca382d3a1be17491fdf94097c693 (diff) | |
| download | bhlib-fe2f39d489a1b5fd9130ce7306f94ae7eacc2ce1.tar.gz | |
Move include from BH/Thread.h to impls' Thread.h
| -rw-r--r-- | src/Platform/Dummy/Condition.c | 2 | ||||
| -rw-r--r-- | src/Platform/Dummy/Mutex.c | 2 | ||||
| -rw-r--r-- | src/Platform/Dummy/Semaphore.c | 2 | ||||
| -rw-r--r-- | src/Platform/Dummy/Thread.c | 2 | ||||
| -rw-r--r-- | src/Platform/Dummy/Thread.h | 3 | ||||
| -rw-r--r-- | src/Platform/Dummy/Tss.c | 2 | ||||
| -rw-r--r-- | src/Platform/Posix/Condition.c | 1 | ||||
| -rw-r--r-- | src/Platform/Posix/Mutex.c | 1 | ||||
| -rw-r--r-- | src/Platform/Posix/Semaphore.c | 1 | ||||
| -rw-r--r-- | src/Platform/Posix/Thread.c | 1 | ||||
| -rw-r--r-- | src/Platform/Posix/Thread.h | 1 | ||||
| -rw-r--r-- | src/Platform/Posix/Tss.c | 1 | ||||
| -rw-r--r-- | src/Platform/Win32/Condition.c | 2 | ||||
| -rw-r--r-- | src/Platform/Win32/Mutex.c | 2 | ||||
| -rw-r--r-- | src/Platform/Win32/Semaphore.c | 2 | ||||
| -rw-r--r-- | src/Platform/Win32/Thread.c | 1 | ||||
| -rw-r--r-- | src/Platform/Win32/Thread.h | 2 | ||||
| -rw-r--r-- | src/Platform/Win32/Tss.c | 1 |
18 files changed, 6 insertions, 23 deletions
diff --git a/src/Platform/Dummy/Condition.c b/src/Platform/Dummy/Condition.c index 64d7856..7bee126 100644 --- a/src/Platform/Dummy/Condition.c +++ b/src/Platform/Dummy/Condition.c @@ -1,7 +1,5 @@ #include "Thread.h" -#include <BH/Thread.h> - BH_Condition *BH_ConditionNew(void) { diff --git a/src/Platform/Dummy/Mutex.c b/src/Platform/Dummy/Mutex.c index 8024fa4..1d26d58 100644 --- a/src/Platform/Dummy/Mutex.c +++ b/src/Platform/Dummy/Mutex.c @@ -1,7 +1,5 @@ #include "Thread.h" -#include <BH/Thread.h> - BH_Mutex *BH_MutexNew(void) { diff --git a/src/Platform/Dummy/Semaphore.c b/src/Platform/Dummy/Semaphore.c index 72d0bc4..0b656dd 100644 --- a/src/Platform/Dummy/Semaphore.c +++ b/src/Platform/Dummy/Semaphore.c @@ -1,7 +1,5 @@ #include "Thread.h" -#include <BH/Thread.h> - BH_Semaphore *BH_SemaphoreNew(int value) { diff --git a/src/Platform/Dummy/Thread.c b/src/Platform/Dummy/Thread.c index a36a780..7463269 100644 --- a/src/Platform/Dummy/Thread.c +++ b/src/Platform/Dummy/Thread.c @@ -1,7 +1,5 @@ #include "Thread.h" -#include <BH/Thread.h> - BH_Thread *BH_ThreadNew(size_t stack, BH_ThreadCallback callback, diff --git a/src/Platform/Dummy/Thread.h b/src/Platform/Dummy/Thread.h index 30ec213..e73cb02 100644 --- a/src/Platform/Dummy/Thread.h +++ b/src/Platform/Dummy/Thread.h @@ -2,6 +2,9 @@ #define BH_PLATFORM_DUMMY_THREAD_H +#include <BH/Thread.h> + + struct BH_Condition { int implement; diff --git a/src/Platform/Dummy/Tss.c b/src/Platform/Dummy/Tss.c index a6582c9..4b83931 100644 --- a/src/Platform/Dummy/Tss.c +++ b/src/Platform/Dummy/Tss.c @@ -1,7 +1,5 @@ #include "Thread.h" -#include <BH/Thread.h> - int BH_TssCreate(BH_GenericCallback callback) { diff --git a/src/Platform/Posix/Condition.c b/src/Platform/Posix/Condition.c index 10ea1f4..3fb5041 100644 --- a/src/Platform/Posix/Condition.c +++ b/src/Platform/Posix/Condition.c @@ -1,6 +1,5 @@ #include "Thread.h" -#include <BH/Thread.h> #include <stdlib.h> #include <errno.h> diff --git a/src/Platform/Posix/Mutex.c b/src/Platform/Posix/Mutex.c index a903d28..dd3aacb 100644 --- a/src/Platform/Posix/Mutex.c +++ b/src/Platform/Posix/Mutex.c @@ -1,6 +1,5 @@ #include "Thread.h" -#include <BH/Thread.h> #include <stdlib.h> #include <errno.h> diff --git a/src/Platform/Posix/Semaphore.c b/src/Platform/Posix/Semaphore.c index 630475f..cd40ad1 100644 --- a/src/Platform/Posix/Semaphore.c +++ b/src/Platform/Posix/Semaphore.c @@ -1,6 +1,5 @@ #include "Thread.h" -#include <BH/Thread.h> #include <stdlib.h> #include <errno.h> #include <time.h> diff --git a/src/Platform/Posix/Thread.c b/src/Platform/Posix/Thread.c index 1771eb6..62635f0 100644 --- a/src/Platform/Posix/Thread.c +++ b/src/Platform/Posix/Thread.c @@ -1,6 +1,5 @@ #include "Thread.h" -#include <BH/Thread.h> #include <limits.h> #include <stdlib.h> diff --git a/src/Platform/Posix/Thread.h b/src/Platform/Posix/Thread.h index 69c6c0f..5cf48ed 100644 --- a/src/Platform/Posix/Thread.h +++ b/src/Platform/Posix/Thread.h @@ -2,6 +2,7 @@ #define BH_PLATFORM_POSIX_THREAD_H +#include <BH/Thread.h> #include <pthread.h> #include <semaphore.h> diff --git a/src/Platform/Posix/Tss.c b/src/Platform/Posix/Tss.c index a16d653..dd66429 100644 --- a/src/Platform/Posix/Tss.c +++ b/src/Platform/Posix/Tss.c @@ -1,6 +1,5 @@ #include "Thread.h" -#include <BH/Thread.h> #include <stdlib.h> #include <string.h> diff --git a/src/Platform/Win32/Condition.c b/src/Platform/Win32/Condition.c index 1d2bcac..d4f9d99 100644 --- a/src/Platform/Win32/Condition.c +++ b/src/Platform/Win32/Condition.c @@ -1,7 +1,5 @@ #include "Thread.h" -#include <BH/Thread.h> - BH_Condition *BH_ConditionNew(void) { diff --git a/src/Platform/Win32/Mutex.c b/src/Platform/Win32/Mutex.c index f34aac1..b5af90e 100644 --- a/src/Platform/Win32/Mutex.c +++ b/src/Platform/Win32/Mutex.c @@ -1,7 +1,5 @@ #include "Thread.h" -#include <BH/Thread.h> - BH_Mutex *BH_MutexNew(void) { diff --git a/src/Platform/Win32/Semaphore.c b/src/Platform/Win32/Semaphore.c index 39fb868..1844ea6 100644 --- a/src/Platform/Win32/Semaphore.c +++ b/src/Platform/Win32/Semaphore.c @@ -1,7 +1,5 @@ #include "Thread.h" -#include <BH/Thread.h> - BH_Semaphore *BH_SemaphoreNew(int value) { diff --git a/src/Platform/Win32/Thread.c b/src/Platform/Win32/Thread.c index 63de498..eafb947 100644 --- a/src/Platform/Win32/Thread.c +++ b/src/Platform/Win32/Thread.c @@ -1,6 +1,5 @@ #include "Thread.h" -#include <BH/Thread.h> #include <process.h> diff --git a/src/Platform/Win32/Thread.h b/src/Platform/Win32/Thread.h index eb83d1a..996ff1e 100644 --- a/src/Platform/Win32/Thread.h +++ b/src/Platform/Win32/Thread.h @@ -1,6 +1,8 @@ #ifndef BH_PLATFORM_WIN32_THREAD_H #define BH_PLATFORM_WIN32_THREAD_H + +#include <BH/Thread.h> #include <windows.h> diff --git a/src/Platform/Win32/Tss.c b/src/Platform/Win32/Tss.c index 58e2893..7d8a1b3 100644 --- a/src/Platform/Win32/Tss.c +++ b/src/Platform/Win32/Tss.c @@ -1,6 +1,5 @@ #include "Thread.h" -#include <BH/Thread.h> #include <stdlib.h> #include <string.h> |
