class thread

Defined at line 17 of file ../../zircon/system/ulib/zx/include/lib/zx/thread.h

Inherits from task<thread>

Functions

create

public zx_status_t create(const process & process, const char * name, uint32_t name_len, uint32_t flags, thread * result)

Defined at line 13 of file ../../zircon/system/ulib/zx/thread.cc

Rather than creating a thread directly with this syscall, consider using std::thread or thrd_create, which properly integrates with the thread-local data structures in libc.

thread

public void thread()

Defined at line 21 of file ../../zircon/system/ulib/zx/include/lib/zx/thread.h

thread

public void thread(zx_handle_t value)

Defined at line 23 of file ../../zircon/system/ulib/zx/include/lib/zx/thread.h

thread

public void thread(handle && h)

Defined at line 25 of file ../../zircon/system/ulib/zx/include/lib/zx/thread.h

thread

public void thread(thread && other)

Defined at line 27 of file ../../zircon/system/ulib/zx/include/lib/zx/thread.h

operator=

public thread & operator=(thread && other)

Defined at line 29 of file ../../zircon/system/ulib/zx/include/lib/zx/thread.h

start

public zx_status_t start(uintptr_t thread_entry, uintptr_t stack, uintptr_t arg1, uintptr_t arg2)

Defined at line 43 of file ../../zircon/system/ulib/zx/include/lib/zx/thread.h

The first variant maps exactly to the syscall and can be used for launching threads in remote processes. The second variant is for conveniently launching threads in the current process.

start

public zx_status_t start(void (*)(uintptr_t, uintptr_t) thread_entry, void * stack, uintptr_t arg1, uintptr_t arg2)

Defined at line 47 of file ../../zircon/system/ulib/zx/include/lib/zx/thread.h

read_state

public zx_status_t read_state(uint32_t kind, void * buffer, size_t len)

Defined at line 53 of file ../../zircon/system/ulib/zx/include/lib/zx/thread.h

write_state

public zx_status_t write_state(uint32_t kind, const void * buffer, size_t len)

Defined at line 56 of file ../../zircon/system/ulib/zx/include/lib/zx/thread.h

raise_exception

public zx_status_t raise_exception(uint32_t options, zx_excp_type_t type, const zx_exception_context_t * context)

Defined at line 61 of file ../../zircon/system/ulib/zx/include/lib/zx/thread.h

self

public unowned self()

Defined at line 67 of file ../../zircon/system/ulib/zx/include/lib/zx/thread.h