aboutsummaryrefslogtreecommitdiff
path: root/doc/Manual/en/BH_Thread.pod
diff options
context:
space:
mode:
authorMikhail Romanko <me@blankhex.com>2025-06-24 16:38:43 +0300
committerMikhail Romanko <me@blankhex.com>2025-06-24 16:48:21 +0300
commit703fb0f2407622a8d82abd9ae18fbde81688773f (patch)
treee1548d0286267c02ad41569c46102fc63de2366d /doc/Manual/en/BH_Thread.pod
parent9212dbc7c2fbc00bb6f31f7d0ad6e9e47cbf9e19 (diff)
downloadbhlib-703fb0f2407622a8d82abd9ae18fbde81688773f.tar.gz
Rename MT functions, add tests, fix bugs
Renamed multithreaded related functions, added simple unit tests and fix bugs caught by said tests :)
Diffstat (limited to 'doc/Manual/en/BH_Thread.pod')
-rw-r--r--doc/Manual/en/BH_Thread.pod12
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/Manual/en/BH_Thread.pod b/doc/Manual/en/BH_Thread.pod
index 1be67b6..2e28fda 100644
--- a/doc/Manual/en/BH_Thread.pod
+++ b/doc/Manual/en/BH_Thread.pod
@@ -98,9 +98,9 @@ If the mutex is locked by another thread, the behavior is undefined.
Returns 0 on success, otherwise an error code.
-=head2 BH_MutexLockTry
+=head2 BH_MutexTryLock
- int BH_MutexLockTry(BH_Mutex *mutex);
+ int BH_MutexTryLock(BH_Mutex *mutex);
Attempts to lock the mutex.
@@ -144,9 +144,9 @@ the semaphore value becomes greater than 0.
Returns 0 on success, otherwise an error code.
-=head2 BH_SemaphoreWaitTry
+=head2 BH_SemaphoreTryWait
- int BH_SemaphoreWaitTry(BH_Semaphore *semaphore);
+ int BH_SemaphoreTryWait(BH_Semaphore *semaphore);
Attempts to decrease the semaphore value by 1.
@@ -244,9 +244,9 @@ Returns 0 on success, otherwise an error code.
Locks the spinlock.
-=head2 BH_SpinlockLockTry
+=head2 BH_SpinlockTryLock
- int BH_SpinlockLockTry(int *lock);
+ int BH_SpinlockTryLock(int *lock);
Attempts to lock the spinlock.