Mutex Class.
更多...
#include <cpp_mutex.h>
|
kstat_t | create (const name_t *name) |
| This function will create a mutex 更多...
|
|
kstat_t | destroy (void) |
| This function will delete a mutex 更多...
|
|
kstat_t | lock (uint32_t millisec) |
| This function will lock mutex 更多...
|
|
kstat_t | unlock (void) |
| This function will unlock a mutex 更多...
|
|
kmutex_t * | self (void) |
| This function will get a Mutex struct pointer 更多...
|
|
Mutex Class.
在文件 cpp_mutex.h 第 30 行定义.
◆ create()
kstat_t create |
( |
const name_t * |
name | ) |
|
This function will create a mutex
- 参数
-
[in] | name | name of the mutex |
- 返回
- the operation status, RHINO_SUCCESS is OK, others is error
◆ destroy()
This function will delete a mutex
- 参数
-
- 返回
- the operation status, RHINO_SUCCESS is OK, others is error
◆ lock()
kstat_t lock |
( |
uint32_t |
millisec | ) |
|
This function will lock mutex
- 参数
-
[in] | millisec | millisec to be wait for before lock |
- 返回
- the operation status, RHINO_SUCCESS is OK, others is error
◆ self()
This function will get a Mutex struct pointer
- 参数
-
- 返回
- Mutex struct pointer
◆ unlock()
This function will unlock a mutex
- 参数
-
- 返回
- the operation status, RHINO_SUCCESS is OK, others is error
该类的文档由以下文件生成:
- /Users/yaoqiuguo/workspace/aos33/components/cplusplus/include/cpp_mutex.h