diff options
| author | Mikhail Romanko <me@blankhex.com> | 2025-06-21 22:22:04 +0300 |
|---|---|---|
| committer | Mikhail Romanko <me@blankhex.com> | 2025-06-21 22:22:04 +0300 |
| commit | 6ff689696949aeac13fe7059a30e4fb999c876e0 (patch) | |
| tree | 1c630782fa5a32d4c8f1fd36ef404efd1ca61004 /include/BH/Thread.h | |
| parent | 6e643403b4ba6232497119e1f0829a7027c36a39 (diff) | |
| download | bhlib-6ff689696949aeac13fe7059a30e4fb999c876e0.tar.gz | |
Remove extra newlines
Diffstat (limited to 'include/BH/Thread.h')
| -rw-r--r-- | include/BH/Thread.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/include/BH/Thread.h b/include/BH/Thread.h index c0d6cca..b4e931e 100644 --- a/include/BH/Thread.h +++ b/include/BH/Thread.h @@ -16,113 +16,87 @@ typedef struct BH_Condition BH_Condition; typedef int (*BH_ThreadCallback)(void *); - BH_Thread *BH_ThreadNew(size_t stack, BH_ThreadCallback callback, void *data); - int BH_ThreadJoin(BH_Thread *thread); - int BH_ThreadDetach(BH_Thread *thread); - BH_Mutex *BH_MutexNew(void); - void BH_MutexFree(BH_Mutex *mutex); - int BH_MutexLock(BH_Mutex *mutex); - int BH_MutexUnlock(BH_Mutex *mutex); - int BH_MutexLockTry(BH_Mutex *mutex); - BH_Semaphore *BH_SemaphoreNew(int value); - void BH_SemaphoreFree(BH_Semaphore *semaphore); - int BH_SemaphorePost(BH_Semaphore *semaphore); - int BH_SemaphoreWait(BH_Semaphore *semaphore); - int BH_SemaphoreWaitTry(BH_Semaphore *semaphore); - int BH_SemaphoreWaitFor(BH_Semaphore *semaphore, uint32_t timeout); - BH_Condition *BH_ConditionNew(void); - void BH_ConditionFree(BH_Condition *condition); - int BH_ConditionWait(BH_Condition *condition, BH_Mutex *mutex); - int BH_ConditionWaitFor(BH_Condition *condition, BH_Mutex *mutex, uint32_t timeout); - int BH_ConditionSignal(BH_Condition *condition); - int BH_ConditionBroadcast(BH_Condition *condition); - void BH_SpinlockLock(int *lock); - int BH_SpinlockLockTry(int *lock); - void BH_SpinlockUnlock(int *lock); - int BH_TssCreate(BH_GenericCallback callback); - void *BH_TssRead(int index); - void BH_TssWrite(int index, void *value); |
