提交 8e2668d5 编写于 作者: T tanyanying

Add inline note for process function

Signed-off-by: Ntanyanying <tanyanying@huawei.com>
上级 c7d0c39b
...@@ -67,6 +67,7 @@ pub fn get_service(said: i32) -> Result<RemoteObj> ...@@ -67,6 +67,7 @@ pub fn get_service(said: i32) -> Result<RemoteObj>
} }
/// Make current thread join to the IPC/RPC work thread pool /// Make current thread join to the IPC/RPC work thread pool
#[inline]
pub fn join_work_thread() pub fn join_work_thread()
{ {
unsafe { unsafe {
...@@ -75,6 +76,7 @@ pub fn join_work_thread() ...@@ -75,6 +76,7 @@ pub fn join_work_thread()
} }
/// Exit current thread from IPC/RPC work thread pool /// Exit current thread from IPC/RPC work thread pool
#[inline]
pub fn stop_work_thread() pub fn stop_work_thread()
{ {
unsafe { unsafe {
...@@ -83,6 +85,7 @@ pub fn stop_work_thread() ...@@ -83,6 +85,7 @@ pub fn stop_work_thread()
} }
/// Get calling token ID of caller /// Get calling token ID of caller
#[inline]
pub fn get_calling_token_id() -> u64 pub fn get_calling_token_id() -> u64
{ {
unsafe { unsafe {
...@@ -91,6 +94,7 @@ pub fn get_calling_token_id() -> u64 ...@@ -91,6 +94,7 @@ pub fn get_calling_token_id() -> u64
} }
/// Get first calling token ID of caller /// Get first calling token ID of caller
#[inline]
pub fn get_first_token_id() -> u64 pub fn get_first_token_id() -> u64
{ {
unsafe { unsafe {
...@@ -99,6 +103,7 @@ pub fn get_first_token_id() -> u64 ...@@ -99,6 +103,7 @@ pub fn get_first_token_id() -> u64
} }
/// Get self token id of current process /// Get self token id of current process
#[inline]
pub fn get_self_token_id() -> u64 pub fn get_self_token_id() -> u64
{ {
unsafe { unsafe {
...@@ -107,6 +112,7 @@ pub fn get_self_token_id() -> u64 ...@@ -107,6 +112,7 @@ pub fn get_self_token_id() -> u64
} }
/// Get calling process id of caller /// Get calling process id of caller
#[inline]
pub fn get_calling_pid() -> u64 pub fn get_calling_pid() -> u64
{ {
unsafe { unsafe {
...@@ -115,6 +121,7 @@ pub fn get_calling_pid() -> u64 ...@@ -115,6 +121,7 @@ pub fn get_calling_pid() -> u64
} }
/// Get calling user id of caller /// Get calling user id of caller
#[inline]
pub fn get_calling_uid() -> u64 pub fn get_calling_uid() -> u64
{ {
unsafe { unsafe {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册