zx::thread

Summary

Inheritance

Inherits from: zx::task< thread >

Constructors and Destructors

thread()
thread(zx_handle_t value)
thread(handle && h)
thread(thread && other)

Public static attributes

TYPE = ZX_OBJ_TYPE_THREAD
constexpr zx_obj_type_t

Public functions

operator=(thread && other)
thread &
read_state(uint32_t kind, void *buffer, size_t len)
zx_status_t
start(uintptr_t thread_entry, uintptr_t stack, uintptr_t arg1, uintptr_t arg2)
zx_status_t
start(void(*)(uintptr_t arg1, uintptr_t arg2) thread_entry, void *stack, uintptr_t arg1, uintptr_t arg2)
zx_status_t
write_state(uint32_t kind, const void *buffer, size_t len)
zx_status_t

Public static functions

create(const process & process, const char *name, uint32_t name_len, uint32_t flags, thread *result)
zx_status_t
raise_exception(uint32_t options, zx_excp_type_t type, const zx_exception_context_t *context)
zx_status_t
self()

Public static attributes

TYPE

constexpr zx_obj_type_t TYPE = ZX_OBJ_TYPE_THREAD

Public functions

operator=

thread & operator=(
  thread && other
)

read_state

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

start

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

start

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

thread

constexpr thread()=default

thread

 thread(
  zx_handle_t value
)

thread

 thread(
  handle && h
)

thread

 thread(
  thread && other
)

write_state

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

Public static functions

create

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

raise_exception

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

self

unowned< thread > self()