From 8e2668d5f25c62cf86441be04fd4befd39ddc27b Mon Sep 17 00:00:00 2001 From: tanyanying Date: Thu, 9 Feb 2023 08:15:37 +0000 Subject: [PATCH] Add inline note for process function Signed-off-by: tanyanying --- interfaces/innerkits/rust/src/process.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/interfaces/innerkits/rust/src/process.rs b/interfaces/innerkits/rust/src/process.rs index a7689f8..dcbd5f1 100644 --- a/interfaces/innerkits/rust/src/process.rs +++ b/interfaces/innerkits/rust/src/process.rs @@ -67,6 +67,7 @@ pub fn get_service(said: i32) -> Result } /// Make current thread join to the IPC/RPC work thread pool +#[inline] pub fn join_work_thread() { unsafe { @@ -75,6 +76,7 @@ pub fn join_work_thread() } /// Exit current thread from IPC/RPC work thread pool +#[inline] pub fn stop_work_thread() { unsafe { @@ -83,6 +85,7 @@ pub fn stop_work_thread() } /// Get calling token ID of caller +#[inline] pub fn get_calling_token_id() -> u64 { unsafe { @@ -91,6 +94,7 @@ pub fn get_calling_token_id() -> u64 } /// Get first calling token ID of caller +#[inline] pub fn get_first_token_id() -> u64 { unsafe { @@ -99,6 +103,7 @@ pub fn get_first_token_id() -> u64 } /// Get self token id of current process +#[inline] pub fn get_self_token_id() -> u64 { unsafe { @@ -107,6 +112,7 @@ pub fn get_self_token_id() -> u64 } /// Get calling process id of caller +#[inline] pub fn get_calling_pid() -> u64 { unsafe { @@ -115,6 +121,7 @@ pub fn get_calling_pid() -> u64 } /// Get calling user id of caller +#[inline] pub fn get_calling_uid() -> u64 { unsafe { -- GitLab