Trait linux_object::thread::ThreadExt
source · [−]pub trait ThreadExt {
fn create_linux(proc: &Arc<Process>) -> ZxResult<Arc<Self>>;
fn lock_linux(&self) -> MutexGuard<'_, LinuxThread>;
fn set_tid_address(&self, tidptr: UserOutPtr<i32>);
fn get_robust_list(
&self,
_head_ptr: UserOutPtr<UserOutPtr<RobustList>>,
_len_ptr: UserOutPtr<usize>
) -> SysResult;
fn set_robust_list(&self, head: UserInPtr<RobustList>, len: usize);
}
Expand description
Thread extension for linux
Required Methods
fn lock_linux(&self) -> MutexGuard<'_, LinuxThread>
fn lock_linux(&self) -> MutexGuard<'_, LinuxThread>
lock and get Linux thread
fn set_tid_address(&self, tidptr: UserOutPtr<i32>)
fn set_tid_address(&self, tidptr: UserOutPtr<i32>)
Set pointer to thread ID.
fn get_robust_list(
&self,
_head_ptr: UserOutPtr<UserOutPtr<RobustList>>,
_len_ptr: UserOutPtr<usize>
) -> SysResult
fn get_robust_list(
&self,
_head_ptr: UserOutPtr<UserOutPtr<RobustList>>,
_len_ptr: UserOutPtr<usize>
) -> SysResult
Get robust list.
fn set_robust_list(&self, head: UserInPtr<RobustList>, len: usize)
fn set_robust_list(&self, head: UserInPtr<RobustList>, len: usize)
Set robust list.
Implementations on Foreign Types
sourceimpl ThreadExt for Thread
impl ThreadExt for Thread
sourcefn set_tid_address(&self, tidptr: UserPtr<i32, Out>)
fn set_tid_address(&self, tidptr: UserPtr<i32, Out>)
Set pointer to thread ID.