Add BH_ThreadSleep, fix Timespec.h
This commit is contained in:
@@ -58,6 +58,15 @@ Upon completion of the thread, the resources of the I<thread> are freed.
|
||||
Returns 0 on success, otherwise an error code.
|
||||
|
||||
|
||||
=head2 BH_ThreadSleep
|
||||
|
||||
void BH_ThreadSleep(uint32_t timeout)
|
||||
|
||||
Makes thread sleep for the specified amount of time.
|
||||
|
||||
The I<timeout> parameter specifies the waiting time in milliseconds.
|
||||
|
||||
|
||||
=head2 BH_MutexNew
|
||||
|
||||
BH_Mutex *BH_MutexNew(void);
|
||||
|
||||
@@ -57,6 +57,15 @@ I<callback> и данными I<data>.
|
||||
В случае успеха возвращает 0, иначе код ошибки.
|
||||
|
||||
|
||||
=head2 BH_ThreadSleep
|
||||
|
||||
void BH_ThreadSleep(uint32_t timeout)
|
||||
|
||||
Останавливает выполнения потока на указнный промежуток времени.
|
||||
|
||||
Параметр I<timeout> задаёт время ожидания в миллисекундах.
|
||||
|
||||
|
||||
=head2 BH_MutexNew
|
||||
|
||||
BH_Mutex *BH_MutexNew(void);
|
||||
|
||||
Reference in New Issue
Block a user